diff --git a/test/entry/config-entry/entry-without-config/entry-without-config.test.js b/test/entry/config-entry/entry-with-command/entry-with-command.test.js similarity index 65% rename from test/entry/config-entry/entry-without-config/entry-without-config.test.js rename to test/entry/config-entry/entry-with-command/entry-with-command.test.js index b8c56a663de..3728c9f9553 100644 --- a/test/entry/config-entry/entry-without-config/entry-without-config.test.js +++ b/test/entry/config-entry/entry-with-command/entry-with-command.test.js @@ -3,11 +3,11 @@ const { stat } = require('fs'); const { resolve } = require('path'); const { run, extractSummary } = require('../../../utils/test-utils'); -describe('single entry with entry in config', () => { - it('should use config entry if config entry existed', done => { - const { stdout } = run(__dirname, ['-c', '../1.js', '../index.js'], false); +describe('config entry and command entry all exists', () => { + it('should use command entry if config command existed', done => { + const { stdout } = run(__dirname, ['-c', '../1.js', './index.js'], false); const summary = extractSummary(stdout); - const outputDir = 'entry-without-config/binary'; + const outputDir = 'entry-with-command/binary'; expect(summary['Output Directory']).toContain(outputDir); expect(stdout).toContain('./index.js'); diff --git a/test/entry/config-entry/index.js b/test/entry/config-entry/entry-with-command/index.js similarity index 100% rename from test/entry/config-entry/index.js rename to test/entry/config-entry/entry-with-command/index.js diff --git a/test/entry/config-entry/entry-with-config/entry-with-config.test.js b/test/entry/config-entry/entry-with-config/entry-with-config.test.js index 97b7e79cc30..32123fe67fd 100644 --- a/test/entry/config-entry/entry-with-config/entry-with-config.test.js +++ b/test/entry/config-entry/entry-with-config/entry-with-config.test.js @@ -3,7 +3,7 @@ const { stat } = require('fs'); const { resolve } = require('path'); const { run, extractSummary } = require('../../../utils/test-utils'); -describe('single entry with entry in config', () => { +describe('default entry and config entry all exists', () => { it('should use config entry if config entry existed', done => { const { stdout } = run(__dirname, ['-c', '../1.js'], false); const summary = extractSummary(stdout);