mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-20 04:48:30 -06:00
PR-579798: Adding Component cypress testing.
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
import { defineConfig } from 'cypress';
|
||||
import webpackConfig from './webpack.cy.config';
|
||||
|
||||
export default defineConfig({
|
||||
env: {},
|
||||
e2e: {
|
||||
@ -9,4 +11,15 @@ export default defineConfig({
|
||||
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
|
||||
experimentalRunAllSpecs: true,
|
||||
},
|
||||
component: {
|
||||
specPattern: 'src/**/*.cy.{js,jsx,ts,tsx}',
|
||||
devServer: {
|
||||
framework: 'react',
|
||||
bundler: 'webpack',
|
||||
webpackConfig: webpackConfig,
|
||||
},
|
||||
viewportWidth: 1280,
|
||||
viewportHeight: 720,
|
||||
fileServerFolder: 'public',
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user