mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-25 08:28:45 -05:00
0366d4fa89
* feat: use supportFile by testingType * Fix defaults * Start renaming files, and updating system-tests * Fix some tests * Fix some tests * Fix more tests * Try to fix CI * Fix more tests * Fix some tests * Revert changes * Revert supportFile defaultValue * Fix some tests * Fix some tests * Fix some tests * Fix some tests * Update supportFile example * Update snapshots * Remove scaffold support * Handle config errors * Remove scaffold * Fix tests * Fix test * Update test * Fix test * Update supportFile template * Fix template
37 lines
797 B
JavaScript
37 lines
797 B
JavaScript
module.exports = {
|
|
'retries': null,
|
|
'e2e': {
|
|
'supportFile': false,
|
|
setupNodeEvents (on, config) {
|
|
const wp = require('@cypress/webpack-preprocessor')
|
|
|
|
const webpackOptions = {
|
|
resolve: {
|
|
extensions: ['.ts', '.js'],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
exclude: [/node_modules/],
|
|
use: {
|
|
loader: 'ts-loader',
|
|
options: {
|
|
compilerOptions: {
|
|
// act as if this option is off
|
|
sourceMap: false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}
|
|
|
|
on('file:preprocessor', wp({ webpackOptions }))
|
|
|
|
return config
|
|
},
|
|
},
|
|
}
|