fix: add webpack-preprocessor, fixes babel 7 compatibility issues

closes #2538
closes #2465
This commit is contained in:
Haoqun Jiang
2018-09-24 21:24:41 +08:00
parent 5f18189570
commit bd32daa2db
3 changed files with 2052 additions and 1372 deletions

View File

@@ -1,6 +1,12 @@
// https://docs.cypress.io/guides/guides/plugins-guide.html
const webpack = require('@cypress/webpack-preprocessor')
module.exports = (on, config) => {
on('file:preprocessor', webpack({
webpackOptions: require('@vue/cli-service/webpack.config'),
watchOptions: {},
}))
return Object.assign({}, config, {
fixturesFolder: 'tests/e2e/fixtures',
integrationFolder: 'tests/e2e/specs',

View File

@@ -22,6 +22,7 @@
"access": "public"
},
"dependencies": {
"@cypress/webpack-preprocessor": "^3.0.0",
"@vue/cli-shared-utils": "^3.0.2",
"cypress": "^3.0.2",
"eslint-plugin-cypress": "^2.0.1"

3417
yarn.lock

File diff suppressed because it is too large Load Diff