Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Apr 16, 2021
1 parent 76e01dd commit 0ce5416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setupTest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*global jasmine*/

jest.setTimeout(300000);
jest.setTimeout(240000);

if (!jasmine.testPath.includes('colors.test.js')) {
process.env.NO_COLOR = true;
Expand Down
6 changes: 3 additions & 3 deletions test/build/unknown/unknown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ describe('unknown behaviour', () => {
});

it('should log error and provide suggestion if an unknown command passed', async () => {
const { exitCode, stderr, stdout } = await run(__dirname, ['server'], true, [], { TERM_PROGRAM: false });
const { exitCode, stderr, stdout } = await run(__dirname, ['serverr'], true, [], { TERM_PROGRAM: false });

expect(exitCode).toBe(2);
expect(stderr).toContain("Unknown command or entry 'server'");
expect(stderr).toContain("Did you mean 'serve' (alias 's')?");
expect(stderr).toContain("Unknown command or entry 'serverr'");
expect(stderr).toContain("Did you mean 'serve' (alias 'server, s')?");
expect(stderr).toContain("Run 'webpack --help' to see available commands and options");
expect(stdout).toBeFalsy();
});
Expand Down

0 comments on commit 0ce5416

Please sign in to comment.