Cypress JS intermittently failing on build. Not quite sure why this is happening as it builds successfully every other build. It seems to get into the Webpack config every tome so it shouldn't really be failing like this
You may need an additional loader to handle the result of these loaders.
| it('Component has mounted', function () {
| // and mount the story using @cypress/react library
> mount(<AroundTheGrounds {...props}/>);
| cy.get('.around-the-grounds');
| });
cypress/plugins/index.js
const injectDevServer = require('@cypress/react/plugins/react-scripts');
const path = require('path');
module.exports = (on, config) => (
injectDevServer(
on,
config,
{
webpackConfigPath: path.resolve(__dirname, '../../cypress.webpack.config.js'),
},
)
);
Has anyone else experienced this?