-
Notifications
You must be signed in to change notification settings - Fork 33
/
cypress.config.js
37 lines (34 loc) · 1.08 KB
/
cypress.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const { defineConfig } = require("cypress");
const config = require('./config');
const webpackPreprocessor = require('@cypress/webpack-preprocessor')
module.exports = defineConfig({
projectId: '2npvgh',
video: false,
e2e: {
specPattern: [
"cypress/e2e/*.{cy,spec}.{js,jsx,ts,tsx}",
"src/**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}"
],
baseUrl: 'http://localhost:8080',
setupNodeEvents(on, config) {
// implement node event listeners here
const options = {
// send in the options from your webpack.config.js, so it works the same
// as your app's code
webpackOptions: require('./build/webpack.base.conf'),
watchOptions: {},
}
on('file:preprocessor', webpackPreprocessor(options))
},
},
component: {
devServer: {
framework: 'vue',
bundler: 'webpack',
// optionally pass in webpack config
webpackConfig: require('./build/webpack.cypress.conf'),
},
specPattern: 'src/**/*.cy.{js,jsx,ts,tsx}',
excludeSpecPattern: "src/**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}"
},
});