Skip to content
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ac0e63f
update: makes test utils/server use applications
namsnath Feb 26, 2025
f8f3515
feat: setup mochawesome
namsnath Feb 26, 2025
c822af2
update: `emailverification` tests use core apps
namsnath Feb 26, 2025
ea59da7
update: `embed` tests use core apps
namsnath Mar 3, 2025
199526a
update: `generalerror` tests use core apps
namsnath Mar 3, 2025
b8c4e28
update: `getRedirectionURL` tests use core apps
namsnath Mar 4, 2025
0ef1de3
update: remove assertion on creating new apps
namsnath Mar 4, 2025
68285dd
update: `mfa.chooserscreen` tests use core apps
namsnath Mar 4, 2025
1238cf3
feat: adds mocha envs to test config
namsnath Mar 4, 2025
bc3a554
lint: format code
namsnath Mar 4, 2025
07a14bd
update: `accountlinking` tests use core apps
namsnath Mar 4, 2025
eb1917e
update: `mfa.default_reqs` tests use core apps
namsnath Mar 4, 2025
d92025d
refactor: split app creation and ST setup utils
namsnath Mar 7, 2025
6e3a2a8
update: `mfa.factorscreen.otp` tests use core apps
namsnath Mar 7, 2025
42783fe
refactor: split app creation and ST setup utils
namsnath Mar 7, 2025
fc666e0
update: `mfa.factorscreen.totp` tests use core apps
namsnath Mar 7, 2025
ab85cef
update: add missing backend hooks
namsnath Mar 11, 2025
8f461f4
update: `mfa.firstFactors` tests use core apps
namsnath Mar 11, 2025
733af02
update: `mfa.requirement_handling` tests use core apps
namsnath Mar 11, 2025
cabddb0
update: `mfa.signin` tests use core apps
namsnath Mar 11, 2025
d9684a0
update: `multitenancy.dynamic_login_methods` tests use core apps
namsnath Mar 11, 2025
73f4c8e
update: `multitenancy.tenant_interactions` tests use core apps
namsnath Mar 11, 2025
221a912
update: `oauth2provider` tests use core apps
namsnath Mar 11, 2025
17f6f83
update: `resetpasswordusingtoken` tests use core apps
namsnath Mar 12, 2025
bb2196f
update: `signin-rrdv5/6` tests use core apps
namsnath Mar 12, 2025
e653718
update: few `thirdparty` tests use core apps
namsnath Mar 12, 2025
5343665
update: removes `visual` tests
namsnath Mar 12, 2025
8a85275
removes usages of old helper functions
namsnath Mar 12, 2025
ff5c5c8
update: `userContext`/`userroles` tests use core apps
namsnath Mar 12, 2025
6ea1d10
fix: broken tests, update configs
namsnath Mar 14, 2025
737b858
update: remove log
namsnath Mar 14, 2025
0edaefd
fix: correct setup ST url
namsnath Mar 19, 2025
0b346a9
test: only run few tests
namsnath Mar 19, 2025
6397f12
revert: test: only run few tests
namsnath Mar 20, 2025
5d1687f
Fix package-lock issues
deepjyoti30-st Mar 25, 2025
967115d
Add some fixes for userContext and test server
deepjyoti30-st Mar 25, 2025
036fa21
update: remove spec config in mocha
namsnath Mar 25, 2025
61596c7
Add mochawesome as dep and fix package-lock
deepjyoti30-st Apr 7, 2025
49cc51a
Fix all tests to make them compatible with unified core setup
deepjyoti30-st Apr 7, 2025
b4ff5d8
Get rid of using random UUID for appId
deepjyoti30-st Apr 15, 2025
9f345a7
Rename Core test to Core Functionality
deepjyoti30-st Apr 15, 2025
1b03733
Get rid of a TODO
deepjyoti30-st Apr 15, 2025
a152c14
Get rid of using timeout in tests
deepjyoti30-st Apr 16, 2025
2223844
Get rid of setting appId from tests directly
deepjyoti30-st Apr 16, 2025
80d3d20
fix: get rid of oauth2provider tests since they are not supported
deepjyoti30-st Apr 17, 2025
49d3f0d
update: removes tests added in backport
namsnath Apr 17, 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,946 changes: 8,343 additions & 26,603 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