Skip to content

Commit 77daae1

Browse files
committed
ci: working on cypress issues
1 parent d8614df commit 77daae1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cypress/plugins/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,18 @@ module.exports = (on, config) => {
2222
config.env.BUILD_ENV = 'production';
2323

2424
if (process.env.NODE_ENV === 'test') {
25+
const webpackConfig = require('../../configs/webpack.config');
26+
console.log('=== CYPRESS WEBPACK CONFIG DEBUG ===');
27+
console.log('Number of plugins:', webpackConfig.plugins ? webpackConfig.plugins.length : 0);
28+
console.log('Has plugins:', !!webpackConfig.plugins);
29+
if (webpackConfig.plugins) {
30+
webpackConfig.plugins.forEach((plugin, i) => {
31+
console.log(`Plugin ${i}:`, plugin.constructor.name);
32+
});
33+
}
34+
2535
const webpackOptions = {
26-
webpackOptions: require('../../configs/webpack.config'),
36+
webpackOptions: webpackConfig,
2737
watchOptions: {},
2838
};
2939
on('file:preprocessor', webpack(webpackOptions));

0 commit comments

Comments
 (0)