Skip to content

Commit 1d524c8

Browse files
authored
Merge pull request #19 from aeternity/fix-e2e
upgrade cypress 10
2 parents 284d983 + 9b13c04 commit 1d524c8

File tree

7 files changed

+30
-13
lines changed

7 files changed

+30
-13
lines changed

cypress.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const { defineConfig } = require('cypress')
2+
3+
module.exports = defineConfig({
4+
fixturesFolder: 'tests/e2e/fixtures',
5+
screenshotsFolder: 'tests/e2e/screenshots',
6+
videosFolder: 'tests/e2e/videos',
7+
e2e: {
8+
// We've imported your old cypress plugins here.
9+
// You may want to clean this up later by importing these.
10+
setupNodeEvents(on, config) {
11+
return require('./tests/e2e/plugins/index.js')(on, config)
12+
},
13+
specPattern: 'tests/e2e/specs/**/*.cy.{js,jsx,ts,tsx}',
14+
supportFile: 'tests/e2e/support/index.js',
15+
},
16+
})

cypress.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"serve:mainnet": "vue-cli-service serve --mode production",
88
"build": "vue-cli-service build",
99
"test:unit": "vue-cli-service test:unit",
10-
"test:e2e": "vue-cli-service test:e2e --headless --mode e2e",
10+
"test:e2e": "vue-cli-service test:e2e --e2e --headless --mode e2e",
1111
"lint": "vue-cli-service lint"
1212
},
1313
"dependencies": {
@@ -27,7 +27,7 @@
2727
"@vue/cli-service": "~5.0.8",
2828
"@vue/test-utils": "^2.0.2",
2929
"@vue/vue3-jest": "^27.0.0",
30-
"cypress": "^9.7.0",
30+
"cypress": "^10.3.1",
3131
"dotenv": "^16.0.1",
3232
"eslint": "^8.20.0",
3333
"eslint-plugin-vue": "^9.3.0",

tests/e2e/babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

tests/e2e/plugins/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ module.exports = (on, config) => {
1717

1818
return Object.assign({}, config, {
1919
fixturesFolder: 'tests/e2e/fixtures',
20-
integrationFolder: 'tests/e2e/specs',
2120
screenshotsFolder: 'tests/e2e/screenshots',
2221
videosFolder: 'tests/e2e/videos',
2322
supportFile: 'tests/e2e/support/index.js'

0 commit comments

Comments
 (0)