I'm using Cypress for integration tests and want to use also, if it's possible, the Component Test Runner for testing single components. At the present time I only found descriptions for setting it up with React or View but not with Angular.
When I try to start node_modules/.bin/cypress open-ct
I get following Error:
Error: It is required to register dev-server plugin that implements `dev-server:start` event for component testing.
I tried to use the suggested implementation from Cypress in my pluginsFile:
const { startDevServer } = require('@cypress/webpack-dev-server')
const webpackConfig = require('../webpack.config.js')
module.exports = (on, config) => {
on('dev-server:start', (options) => {
return startDevServer({ options, webpackConfig })
})
return config
}
but it still fails.
Is there a chance to get it running with Angular?