ci: use jest shard (#35622)

This commit is contained in:
vagusX
2022-05-27 21:49:16 +08:00
committed by GitHub
parent 7a2a4e2a71
commit acdd164a09
3 changed files with 16 additions and 13 deletions

View File

@@ -129,13 +129,15 @@ if (process.env.RUN_ENV === 'PRODUCTION') {
});
}
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: false,
reportFilename: '../report.html',
}),
);
if (!process.env.CI) {
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: false,
reportFilename: '../report.html',
}),
);
}
if (!process.env.NO_DUP_CHECK) {
config.plugins.push(