Skip to content

Commit

Permalink
Add test framework (#278)
Browse files Browse the repository at this point in the history
* Add vitest to frontend and backend.
* Run npm test to run all tests with coverage.
  • Loading branch information
bencoombs authored Sep 24, 2024
1 parent dd5efeb commit e1d73a8
Show file tree
Hide file tree
Showing 15 changed files with 2,884 additions and 160 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
dist/
*.sqlite
**/.DS_Store
coverage/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"author": "TODO",
"license": "AGPL-3.0-only",
"scripts": {
"legacy": "node packages/legacy/dist/app.js"
"legacy": "node packages/legacy/dist/app.js",
"test": "(cd packages/frontend && npm run coverage); (cd packages/backend && npm run coverage);"
},
"workspaces": [
"packages/legacy"
Expand Down
5 changes: 4 additions & 1 deletion packages/backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ __pycache__/
# Azurite artifacts
__blobstorage__
__queuestorage__
__azurite_db*__.json
__azurite_db*__.json

# Test coverage
coverage/
Loading

0 comments on commit e1d73a8

Please sign in to comment.