Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
4953780
feat: setup mochawesome
namsnath Feb 26, 2025
6a4c5f4
update: `emailverification` tests use core apps
namsnath Feb 26, 2025
a4e3bb2
update: `embed` tests use core apps
namsnath Mar 3, 2025
b1e5018
update: `generalerror` tests use core apps
namsnath Mar 3, 2025
cde1ed0
update: `getRedirectionURL` tests use core apps
namsnath Mar 4, 2025
e1a6038
update: remove assertion on creating new apps
namsnath Mar 4, 2025
b574d7d
update: `mfa.chooserscreen` tests use core apps
namsnath Mar 4, 2025
b1fb488
feat: adds mocha envs to test config
namsnath Mar 4, 2025
b6754f1
lint: format code
namsnath Mar 4, 2025
24aa280
update: `accountlinking` tests use core apps
namsnath Mar 4, 2025
3eee814
update: `mfa.default_reqs` tests use core apps
namsnath Mar 4, 2025
05c5c92
refactor: split app creation and ST setup utils
namsnath Mar 7, 2025
c05d57c
update: `mfa.factorscreen.otp` tests use core apps
namsnath Mar 7, 2025
2b2be51
refactor: split app creation and ST setup utils
namsnath Mar 7, 2025
b29d98f
update: `mfa.factorscreen.totp` tests use core apps
namsnath Mar 7, 2025
69d5cc5
update: add missing backend hooks
namsnath Mar 11, 2025
f24070b
update: `mfa.firstFactors` tests use core apps
namsnath Mar 11, 2025
8160d56
update: `mfa.requirement_handling` tests use core apps
namsnath Mar 11, 2025
ee394a8
update: `mfa.signin` tests use core apps
namsnath Mar 11, 2025
0a01efe
update: `multitenancy.dynamic_login_methods` tests use core apps
namsnath Mar 11, 2025
391bc3d
update: `multitenancy.tenant_interactions` tests use core apps
namsnath Mar 11, 2025
f860c52
update: `oauth2provider` tests use core apps
namsnath Mar 11, 2025
cc439d8
update: `resetpasswordusingtoken` tests use core apps
namsnath Mar 12, 2025
c959c6b
update: `signin-rrdv5/6` tests use core apps
namsnath Mar 12, 2025
dcbd060
update: few `thirdparty` tests use core apps
namsnath Mar 12, 2025
7e7a5d6
update: removes `visual` tests
namsnath Mar 12, 2025
07aa01f
removes usages of old helper functions
namsnath Mar 12, 2025
e377842
update: `userContext`/`userroles` tests use core apps
namsnath Mar 12, 2025
57776f0
fix: broken tests, update configs
namsnath Mar 14, 2025
8821e4e
update: remove log
namsnath Mar 14, 2025
d4a4116
fix: correct setup ST url
namsnath Mar 19, 2025
4c7124a
test: only run few tests
namsnath Mar 19, 2025
daf514e
revert: test: only run few tests
namsnath Mar 20, 2025
ec0df7a
Fix package-lock issues
deepjyoti30-st Mar 25, 2025
7c9c7ce
Add some fixes for userContext and test server
deepjyoti30-st Mar 25, 2025
4f506c7
update: remove spec config in mocha
namsnath Mar 25, 2025
794897b
Add mochawesome as dep and fix package-lock
deepjyoti30-st Apr 7, 2025
e597545
Fix all tests to make them compatible with unified core setup
deepjyoti30-st Apr 7, 2025
896bcf1
Add fixes for tests to make them run
deepjyoti30-st Apr 9, 2025
bd1d2e2
Add compose and workflows for running the tests
deepjyoti30-st Apr 9, 2025
90ca25a
Fix remaining tests and make them all pass
deepjyoti30-st Apr 9, 2025
3a62eac
Add fix for setupTenant endpoint incorrect behaviour
deepjyoti30-st Apr 10, 2025
e6cf3af
Add fix for no providers enabled on the backend test
deepjyoti30-st Apr 10, 2025
19d5fad
Get rid of using random UUID for appId
deepjyoti30-st Apr 15, 2025
be892d2
Rename Core test to Core Functionality
deepjyoti30-st Apr 15, 2025
4898a91
Get rid of a TODO
deepjyoti30-st Apr 15, 2025
58751bb
Get rid of using timeout in tests
deepjyoti30-st Apr 16, 2025
7f2baba
Get rid of setting appId from tests directly
deepjyoti30-st Apr 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .github/workflows/tests-visual.yml

This file was deleted.

15 changes: 10 additions & 5 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
spec:
- test/unit/**/*.test.js
- test/end-to-end/**/*.test.js
reporter: spec
# spec:
# - test/end-to-end/**/*.test.js
slow: 20000
timeout: 30000
timeout: 40000
exit: true
require:
- "@babel/register"
- test/test.mocha.env
reporter: mocha-multi-reporters
reporter-option:
- configFile=mocha-multi-reporters.json
9 changes: 9 additions & 0 deletions mocha-multi-reporters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"reporterEnabled": "mochawesome, mocha-junit-reporter",
"mochaJunitReporterReporterOptions": {
"mochaFile": "test_report/test-results.xml"
},
"mochawesomeReporterOptions": {
"reportDir": "test_report/mochawesome"
}
}
34,940 changes: 8,340 additions & 26,600 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"mocha": "^10.2.0",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi": "^1.1.7",
"mocha-multi-reporters": "^1.5.1",
"mocha-split-tests": "github:rishabhpoddar/mocha-split-tests",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.19",
Expand Down Expand Up @@ -91,6 +92,7 @@
},
"dependencies": {
"intl-tel-input": "^17.0.19",
"mochawesome": "^7.1.3",
"prop-types": "*",
"react-qr-code": "^2.0.12",
"supertokens-js-override": "^0.0.4"
Expand All @@ -113,7 +115,6 @@
"test-e2e-react16": "RUN_REACT_16_TESTS=true ./test/startTestApp.sh 8082",
"test-e2e-with-non-node": "./test/startTestApp.sh 8083",
"test-unit": "TEST_MODE=testing jest --silent -c jest.config.js --runInBand",
"test-visual": "SPEC_FILES=test/visual/**/*.test.js npx percy exec -- npm run test-e2e",
"prep-test-app": "./test/prepTestApp.sh $SRC",
"build-check": "cd lib && npx tsc -p tsconfig.json --noEmit && cd ../test/with-typescript && npx tsc -p tsconfig.json",
"tsc": "cd lib && npx tsc -p tsconfig.json",
Expand Down
Loading
Loading