Fix testcafe CI
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ setup:
|
|||||||
# - npm run test:unit
|
# - npm run test:unit
|
||||||
|
|
||||||
test:e2e:
|
test:e2e:
|
||||||
image: node:12-browsers
|
image: circleci/node:12-browsers
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npm run test:e2e
|
- npm run test:e2e
|
||||||
|
|||||||
+5
-3
@@ -32,10 +32,12 @@
|
|||||||
"serve": "node dist/js/server.js",
|
"serve": "node dist/js/server.js",
|
||||||
"start-prod": "npm run build && npm run serve",
|
"start-prod": "npm run build && npm run serve",
|
||||||
"mock-backend": "json-server --watch db.json -H 0.0.0.0 -p 1234",
|
"mock-backend": "json-server --watch db.json -H 0.0.0.0 -p 1234",
|
||||||
"test": "npm-run-all lint test:e2e",
|
"test": "npm-run-all lint test:e2e:verbose",
|
||||||
"test:e2e": "npm-run-all -s build test:e2e:run",
|
"test:e2e": "npm-run-all -s build test:e2e:run",
|
||||||
|
"test:e2e:verbose": "npm-run-all -p -r serve test:e2e:testcafe:verbose",
|
||||||
"test:e2e:run": "npm-run-all -p -r serve test:e2e:testcafe",
|
"test:e2e:run": "npm-run-all -p -r serve test:e2e:testcafe",
|
||||||
"test:e2e:testcafe": "testcafe -S -s 'tests/testcafe/screenshots' --app-init-delay 2000 chrome tests/testcafe",
|
"test:e2e:testcafe": "testcafe -S -s 'tests/testcafe/screenshots' --app-init-delay 2000 chrome:headless tests/testcafe",
|
||||||
|
"test:e2e:testcafe:verbose": "testcafe -S -s 'tests/testcafe/screenshots' --app-init-delay 2000 chrome tests/testcafe",
|
||||||
"plop": "plop"
|
"plop": "plop"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
@@ -126,4 +128,4 @@
|
|||||||
"shortid": "2.2.14"
|
"shortid": "2.2.14"
|
||||||
},
|
},
|
||||||
"postcss": {}
|
"postcss": {}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user