Skip to content

Commit da9ddcb

Browse files
authored
Merge pull request #890 from supertokens/ci/github-actions/auth-react/v0.38.0
[v0.38.0] feat: e2e tests use containerized core
2 parents 8f0cbf8 + 519fed1 commit da9ddcb

31 files changed

+9808
-24311
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: 7260 additions & 20113 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
@@ -49,6 +49,7 @@
4949
"mocha": "^10.2.0",
5050
"mocha-junit-reporter": "^2.2.1",
5151
"mocha-multi": "^1.1.7",
52+
"mocha-multi-reporters": "^1.5.1",
5253
"mocha-split-tests": "github:rishabhpoddar/mocha-split-tests",
5354
"npm-run-all": "^4.1.5",
5455
"postcss": "^8.4.19",
@@ -77,6 +78,7 @@
7778
},
7879
"dependencies": {
7980
"intl-tel-input": "^17.0.19",
81+
"mochawesome": "^7.1.3",
8082
"prop-types": "*",
8183
"supertokens-js-override": "^0.0.4"
8284
},
@@ -98,7 +100,6 @@
98100
"test-e2e-react16": "RUN_REACT_16_TESTS=true ./test/startTestApp.sh 8082",
99101
"test-e2e-with-non-node": "./test/startTestApp.sh 8083",
100102
"test-unit": "TEST_MODE=testing jest --silent -c jest.config.js --runInBand",
101-
"test-visual": "SPEC_FILES=test/visual/**/*.test.js npx percy exec -- npm run test-e2e",
102103
"prep-test-app": "./test/prepTestApp.sh $SRC",
103104
"build-check": "cd lib && npx tsc -p tsconfig.json --noEmit && cd ../test/with-typescript && npx tsc -p tsconfig.json",
104105
"tsc": "cd lib && npx tsc -p tsconfig.json",

0 commit comments

Comments
 (0)