Skip to content

Commit 69437a1

Browse files
authored
Merge pull request #889 from supertokens/ci/github-actions/auth-react/v0.41.0
[v0.41.0] feat: e2e tests use containerized core
2 parents 98e3198 + 7f2baba commit 69437a1

39 files changed

+11628
-30918
lines changed

.github/workflows/tests-visual.yml

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

.mocharc.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
spec:
2-
- test/unit/**/*.test.js
3-
- test/end-to-end/**/*.test.js
4-
reporter: spec
1+
# spec:
2+
# - test/end-to-end/**/*.test.js
53
slow: 20000
6-
timeout: 30000
4+
timeout: 40000
5+
exit: true
6+
require:
7+
- "@babel/register"
8+
- test/test.mocha.env
9+
reporter: mocha-multi-reporters
10+
reporter-option:
11+
- configFile=mocha-multi-reporters.json

mocha-multi-reporters.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"reporterEnabled": "mochawesome, mocha-junit-reporter",
3+
"mochaJunitReporterReporterOptions": {
4+
"mochaFile": "test_report/test-results.xml"
5+
},
6+
"mochawesomeReporterOptions": {
7+
"reportDir": "test_report/mochawesome"
8+
}
9+
}

package-lock.json

Lines changed: 8340 additions & 26600 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"mocha": "^10.2.0",
6262
"mocha-junit-reporter": "^2.2.1",
6363
"mocha-multi": "^1.1.7",
64+
"mocha-multi-reporters": "^1.5.1",
6465
"mocha-split-tests": "github:rishabhpoddar/mocha-split-tests",
6566
"npm-run-all": "^4.1.5",
6667
"postcss": "^8.4.19",
@@ -91,6 +92,7 @@
9192
},
9293
"dependencies": {
9394
"intl-tel-input": "^17.0.19",
95+
"mochawesome": "^7.1.3",
9496
"prop-types": "*",
9597
"react-qr-code": "^2.0.12",
9698
"supertokens-js-override": "^0.0.4"
@@ -113,7 +115,6 @@
113115
"test-e2e-react16": "RUN_REACT_16_TESTS=true ./test/startTestApp.sh 8082",
114116
"test-e2e-with-non-node": "./test/startTestApp.sh 8083",
115117
"test-unit": "TEST_MODE=testing jest --silent -c jest.config.js --runInBand",
116-
"test-visual": "SPEC_FILES=test/visual/**/*.test.js npx percy exec -- npm run test-e2e",
117118
"prep-test-app": "./test/prepTestApp.sh $SRC",
118119
"build-check": "cd lib && npx tsc -p tsconfig.json --noEmit && cd ../test/with-typescript && npx tsc -p tsconfig.json",
119120
"tsc": "cd lib && npx tsc -p tsconfig.json",

0 commit comments

Comments
 (0)