Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9985ab1
Install vitest and uninstall jest (no yarn lockfile)
CocoisBuggy Dec 11, 2024
e64abd5
write out all fail() invocations
CocoisBuggy Dec 11, 2024
d2a9503
Tests now all appear to be passing
CocoisBuggy Dec 11, 2024
d7b432a
Passing most tests stable with vitest fixtures
CocoisBuggy Dec 14, 2024
3a05068
Merge branch 'develop' into coco/#420
CocoisBuggy Mar 3, 2025
691db38
Fix TS-standard lint error
CocoisBuggy Mar 3, 2025
56fd48e
Allow logger to recieve a LOG_LEVEL env var
CocoisBuggy Mar 3, 2025
6a7f80a
Merge branch 'develop' into coco/#420
CocoisBuggy Mar 3, 2025
910e94f
Merge branch 'develop' into coco/#420
CocoisBuggy Apr 23, 2025
484194e
Pull in new vitest version (3) + refactor some test infra
CocoisBuggy Apr 23, 2025
a10c480
Lock dependencies properly (woops)
CocoisBuggy Apr 23, 2025
966c4b2
Repair flaky tests making heuristic assertions weak to side effects
CocoisBuggy Apr 23, 2025
d28d032
fix lint issue
CocoisBuggy Apr 23, 2025
db063aa
History behavioral tests written
CocoisBuggy Apr 24, 2025
b352031
Fix flaky history dependant on sleep
CocoisBuggy Apr 24, 2025
7590a3c
Fix test filenames
CocoisBuggy Apr 24, 2025
724630b
Typescript standard style will now apply to tests as well.
CocoisBuggy Apr 24, 2025
6b36670
Duplicates the sub-areas test somewhat
CocoisBuggy Apr 24, 2025
2760d0f
hanging client connection not getting closed.
CocoisBuggy Apr 24, 2025
c250fb9
Force vite to only collect test files (by name)
CocoisBuggy Apr 24, 2025
18c768b
Fix intermittent flakiness with history test
CocoisBuggy Apr 24, 2025
49a1a5b
Merge branch 'develop' into coco/#420
CocoisBuggy May 8, 2025
d65db0f
Merge branch 'develop' into coco/#420
CocoisBuggy May 12, 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
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
docker container restart mongodb

- name: Run tests
run: yarn test --ci
run: CI=true yarn test

- name: Build sources
run: yarn build-release --noEmit
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ yarn-error.log*
lerna-debug.log*
.DS_Store

# test profiling data
profiling

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down
39 changes: 8 additions & 31 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,39 +77,16 @@
"console": "integratedTerminal"
},
{
"name": "Debug Jest Tests",
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"type": "node",
"request": "launch",
"env": {
"NODE_OPTIONS": "--experimental-vm-modules"
},
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
"--runInBand",
"history"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"name": "vscode-jest-tests.v2",
"request": "launch",
"env": {
"NODE_OPTIONS": "--experimental-vm-modules"
},
"args": [
"${workspaceRoot}/node_modules/.bin/jest",
"--runInBand",
"--watchAll=false",
"--testNamePattern",
"${jest.testNamePattern}",
"--runTestsByPath",
"${jest.testFile}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
"name": "Debug Tests",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run"],
"smartStep": true,
"console": "integratedTerminal"
}
]
}
19 changes: 0 additions & 19 deletions jest.config.cjs

This file was deleted.

11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,17 @@
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@types/auth0": "^3.3.2",
"@types/jest": "^29.4.0",
"@types/node": "^18.13.0",
"@types/supertest": "^2.0.12",
"@types/underscore": "^1.11.4",
"cross-env": "^7.0.3",
"husky": "^8.0.1",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"mongodb-memory-server": "^10.1.2",
"nock": "^13.3.0",
"supertest": "^6.3.3",
"ts-jest": "^29.2.5",
"ts-standard": "^12.0.0",
"typescript": "4.9.5",
"wait-for-expect": "^3.0.2"
"vitest": "^3.1.2"
},
"dependencies": {
"@apollo/server": "^4.11.2",
Expand Down Expand Up @@ -73,11 +69,11 @@
"scripts": {
"lint": "yarn ts-standard",
"fix": "yarn ts-standard --fix",
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest --runInBand",
"test": "LOG_LEVEL=silent vitest run --silent",
"build": "tsc -p tsconfig.json",
"build-release": "tsc -p tsconfig.release.json",
"clean": "tsc -b --clean && rm -rf build/*",
"serve": "yarn build && node --experimental-json-modules build/main.js",
"serve": "yarn build && node --experimental-json-modules build/src/main.js",
"serve-dev": "echo \"🚨 LOCAL_DEV_BYPASS_AUTH enabled 🚨\" && LOCAL_DEV_BYPASS_AUTH=true yarn serve",
"seed-db": "./seed-db.sh",
"add-countries": "yarn build && node build/db/utils/jobs/AddCountriesJob.js",
Expand All @@ -103,7 +99,6 @@
"ignore": [
"build",
"hacks",
"**/*.test.ts",
"db-migrations"
]
},
Expand Down
179 changes: 0 additions & 179 deletions src/__tests__/areas.ts

This file was deleted.

Loading
Loading