Files
cypress/system-tests/test/webpack_dev_server_fresh_spec.ts
Mike Plummer bf590eba3f feat: CT stack traces (#23916)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-09-26 17:31:46 -05:00

30 lines
939 B
TypeScript

import systemTests from '../lib/system-tests'
import type { fixtureDirs } from '@tooling/system-tests'
import { stripAnsi } from '@packages/server/lib/errors'
type ProjectDirs = typeof fixtureDirs
const WEBPACK_REACT: ProjectDirs[number][] = ['webpack4_wds3-react', 'webpack4_wds4-react', 'webpack5_wds3-react', 'webpack5_wds4-react']
describe('@cypress/webpack-dev-server', function () {
systemTests.setup()
describe('react', () => {
for (const project of WEBPACK_REACT) {
it(`executes all of the tests for ${project}`, function () {
return systemTests.exec(this, {
project,
configFile: 'cypress-webpack.config.ts',
testingType: 'component',
browser: 'chrome',
snapshot: true,
expectedExitCode: 7,
onStdout: (stdout) => {
return systemTests.normalizeWebpackErrors(stripAnsi(stdout))
},
})
})
}
})
})