Skip to content

Commit

Permalink
fix: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swashata committed Dec 26, 2019
1 parent 4dc499d commit a6b0409
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
1 change: 1 addition & 0 deletions packages/babel-preset-base/__tests__/preset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ describe('preset in module', () => {
noJsonStrings: true,
noRuntime: true,
noOptionalChaining: true,
noNullishCoalescingOperator: true,
});
expect(plugins).toHaveLength(1);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,6 @@ describe('WebpackConfigHelper', () => {
(cwc.getOptimization() as webpack.Options.Optimization)
.runtimeChunk
).toBe('single');
expect(cwc.getOptimization()).toMatchSnapshot();
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,6 @@ Object {
}
`;

exports[`WebpackConfigHelper getOptimization returns object when in use 1`] = `
Object {
"runtimeChunk": "single",
"splitChunks": Object {
"cacheGroups": Object {
"default": Object {
"minChunks": 2,
"priority": -20,
"reuseExistingChunk": true,
},
"vendors": Object {
"priority": -10,
"test": /\\[\\\\\\\\\\\\/\\]node_modules\\[\\\\\\\\\\\\/\\]/,
},
},
"chunks": "all",
"maxAsyncRequests": 5,
"maxInitialRequests": 3,
"minChunks": 1,
"minSize": 30000,
"name": true,
},
}
`;

exports[`WebpackConfigHelper getPlugins has proper plugins for build mode 1`] = `
Array [
DefinePlugin {
Expand Down

0 comments on commit a6b0409

Please sign in to comment.