<commit_before>'use strict';
const { stat } = require('fs');
const { resolve } = require('path');
const { run } = require('../../utils/test-utils');

describe('Node target', () => {
    it('should emit the correct code', (done) => {
        const { stderr } = run(__dirname, [__dirname, '-c', './webpack.config.js']);
        expect(stderr).toBeFalsy();
        stat(resolve(__dirname, 'bin/main.js'), (err, stats) => {
            expect(err).toBe(null);
            expect(stats.isFile()).toBe(true);
            done();
        });
    });
});<commit_msg>tests(webpack-cli): correct node-test (#1455)<commit_after>'use strict';
const { stat } = require('fs');
const { resolve } = require('path');
const { run } = require('../../utils/test-utils');

describe('Node target', () => {
    it('should emit the correct code', (done) => {
        const { stderr } = run(__dirname, ['-c', './webpack.config.js']);
        expect(stderr).toBeFalsy();
        stat(resolve(__dirname, 'bin/main.js'), (err, stats) => {
            expect(err).toBe(null);
            expect(stats.isFile()).toBe(true);
            done();
        });
    });
});
{'fraction_non_alphanumeric': 0.22427440633245382, 'fraction_numerical': 0.003518029903254178, 'mean_word_length': 2.7311475409836063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2629235', 'n_tokens_mistral': 346, 'n_tokens_neox': 339, 'n_words': 68}