Skip to content

Commit 2ef6037

Browse files
authored
upgrade Cypress to v12 (#134)
* document configuration for v10+ * update actions * bump Cypress to v12 * remove separate plugins file * fix the path
1 parent fdc236b commit 2ef6037

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+40
-342
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121

2222
- name: Test exporting Markdown to JavaScript 🖨
2323
run: |
24-
node ./bin/export-fiddles cypress/integration/skip.md
25-
cat cypress/integration/skip.js
24+
node ./bin/export-fiddles cypress/e2e/skip.md
25+
cat cypress/e2e/skip.js
2626
# TODO: confirm the exported JavaScript file
2727
2828
- name: Semantic Release 🚀

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules/
22
cypress/videos
33
cypress/screenshots
4-
cypress/integration/*.js
4+
cypress/e2e/*.js

cypress.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const { defineConfig } = require('cypress')
2+
3+
// in the user project it would be
4+
// const mdPreprocessor = require('cypress-markdown-preprocessor')
5+
const mdPreprocessor = require('.')
6+
7+
module.exports = defineConfig({
8+
fixturesFolder: false,
9+
viewportWidth: 500,
10+
e2e: {
11+
// We've imported your old cypress plugins here.
12+
// You may want to clean this up later by importing these.
13+
setupNodeEvents(on, config) {
14+
on('file:preprocessor', mdPreprocessor)
15+
return config
16+
},
17+
specPattern: ['cypress/e2e/*.md', 'cypress/e2e/*.js'],
18+
excludeSpecPattern: ['skip.js'],
19+
},
20+
})

cypress.json

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)