Skip to content

Commit

Permalink
tests(webpack-cli): add more cases in version-multi-args-test
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Apr 3, 2020
1 parent b891357 commit 6785e40
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion test/version/version-multi-args.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,37 @@ describe('version flag with multiple arguments', () => {
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['version', 'create']);
const { stdout, stderr } = run(__dirname, ['version', 'init']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['version', 'info']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['version', 'migrate']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['version', 'serve']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['version', 'generate-plugin']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});

it('outputs version with multiple commands', () => {
const { stdout, stderr } = run(__dirname, ['version', 'generate-loader']);
expect(stdout).toContain(pkgJSON.version);
expect(stderr).toHaveLength(0);
});
Expand Down

0 comments on commit 6785e40

Please sign in to comment.