Skip to content

Commit

Permalink
tests(jest): rename the tests for entry-with command and entry-with-c…
Browse files Browse the repository at this point in the history
…onfig

ISSUES CLOSED: webpack#1288
  • Loading branch information
Mistyyyy committed Mar 6, 2020
1 parent 9f84700 commit 39f5195
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 39f5195

Please sign in to comment.