Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit 938b7ab

Browse files
Migrate to published version of cypress-expect (#457)
1 parent 4fb01c0 commit 938b7ab

File tree

8 files changed

+33
-66
lines changed

8 files changed

+33
-66
lines changed

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "next",
88
"build": "next build",
99
"start": "next start",
10-
"test": "node ../../scripts/cypress-expect run --passing 7",
10+
"test": "../../node_modules/.bin/../../node_modules/.bin/cypress-expect run --min-passing 7",
1111
"cy:open": "../../node_modules/.bin/cypress open",
1212
"build:static": "next build && next out",
1313
"check-coverage": "../../node_modules/.bin/check-coverage components/Search.jsx && ../../node_modules/.bin/check-coverage pages/index.js",

examples/react-scripts-folder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Handles component tests from cypress folder",
44
"private": true,
55
"scripts": {
6-
"test": "node ../../scripts/cypress-expect run --passing 5",
6+
"test": "../../node_modules/.bin/cypress-expect run --min-passing 5",
77
"cy:open": "../../node_modules/.bin/cypress open",
88
"check-coverage": "../../node_modules/.bin/check-coverage src/App.js src/calc.js src/Child.js",
99
"only-covered": "../../node_modules/.bin/only-covered src/App.js src/calc.js src/Child.js"

examples/react-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"start": "../../node_modules/.bin/react-scripts start",
7-
"test": "node ../../scripts/cypress-expect run --passing 13",
7+
"test": "../../node_modules/.bin/cypress-expect run --min-passing 13",
88
"cy:open": "../../node_modules/.bin/cypress open",
99
"check-coverage": "../../node_modules/.bin/check-coverage src/App.js src/calc.js src/Child.js src/services.js src/RemotePizza.js cypress/fixtures/add.js",
1010
"only-covered": "../../node_modules/.bin/only-covered src/App.js src/calc.js src/Child.js src/services.js src/RemotePizza.js cypress/fixtures/add.js"

examples/using-babel-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Component testing for TypeScript projects using Babel config",
44
"private": true,
55
"scripts": {
6-
"test": "node ../../scripts/cypress-expect run --passing 1",
6+
"test": "../../node_modules/.bin/cypress-expect run --min-passing 1",
77
"cy:open": "../../node_modules/.bin/cypress open"
88
},
99
"devDependencies": {

examples/using-babel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Component testing for projects using Babel config",
44
"private": true,
55
"scripts": {
6-
"test": "node ../../scripts/cypress-expect run --passing 17",
6+
"test": "../../node_modules/.bin/cypress-expect run --min-passing 17",
77
"cy:open": "../../node_modules/.bin/cypress open"
88
},
99
"devDependencies": {

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"css-loader": "2.1.1",
9898
"cypress": "5.3.0",
9999
"cypress-axe": "0.8.1",
100+
"cypress-expect": "2.0.0",
100101
"cypress-image-snapshot": "3.1.1",
101102
"cypress-plugin-snapshots": "1.4.4",
102103
"cypress-react-selector": "2.0.4",

scripts/cypress-expect.js

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

0 commit comments

Comments
 (0)