Skip to content

Commit 62684a0

Browse files
committed
tests: add case for mode option none in ZeroConfigGroup
1 parent a6930ac commit 62684a0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/webpack-cli/__tests__/ZeroConfigGroup.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,15 @@ describe('GroupHelper', function() {
4242
const result = group.run();
4343
expect(result.options.mode).toEqual('development');
4444
});
45+
46+
it('should handle the mode option [none]', () => {
47+
const group = new ZeroConfigGroup([
48+
{
49+
mode: 'none',
50+
},
51+
]);
52+
53+
const result = group.run();
54+
expect(result.options.mode).toEqual('none');
55+
});
4556
});

0 commit comments

Comments
 (0)