testcafe testing
This commit is contained in:
+3
-2
@@ -67,11 +67,12 @@ build:
|
|||||||
- .next/cache/
|
- .next/cache/
|
||||||
|
|
||||||
test:e2e:
|
test:e2e:
|
||||||
image: circleci/node:16-browsers
|
image: cimg/node:20.18-browsers
|
||||||
needs: ["install", "build"]
|
needs: ["install", "build"]
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npm run testcafe
|
- npm ci
|
||||||
|
- npm run testcafe:ci
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- e2e-screenshots
|
- e2e-screenshots
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
"test:unit": "jest --coverage",
|
"test:unit": "jest --coverage",
|
||||||
"test": "npm run testcafe",
|
"test": "npm run testcafe",
|
||||||
"testcafe": "testcafe --config-file testcafe.json",
|
"testcafe": "testcafe --config-file testcafe.json",
|
||||||
|
"testcafe:ci": "testcafe chrome:headless --config-file testcafe.json",
|
||||||
"build-analyze": "ANALYZE=true npm run build",
|
"build-analyze": "ANALYZE=true npm run build",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user