Skip to content

Commit

Permalink
tests(webpack-cli): add case for mode option none in ZeroConfigGroup (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Mar 9, 2020
1 parent 0cbb270 commit 8e90009
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/webpack-cli/__tests__/ZeroConfigGroup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,15 @@ describe('GroupHelper', function() {
const result = group.run();
expect(result.options.mode).toEqual('development');
});

it('should handle the mode option [none]', () => {
const group = new ZeroConfigGroup([
{
mode: 'none',
},
]);

const result = group.run();
expect(result.options.mode).toEqual('none');
});
});

0 comments on commit 8e90009

Please sign in to comment.