Skip to content

Commit

Permalink
use vitest to test for browser and node
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Mollik <[email protected]>
  • Loading branch information
cre8 committed Feb 13, 2024
1 parent a86d525 commit fc6e8a4
Show file tree
Hide file tree
Showing 15 changed files with 753 additions and 1,534 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Run Tests(Unit)
- name: Run Tests(Browser)
run: pnpm test:browser
- name: Run Tests(Node)
run: pnpm test
- name: Run Tests(E2E)
run: pnpm test:e2e
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
},
"scripts": {
"build": "tsup",
"test": "jest ./src/test/*.spec.ts",
"test:e2e": "jest ./test/*.spec.ts",
"test:cov": "jest ./src/test/*.spec.ts ./test/*.spec.ts --coverage"
"test": "vitest",
"test:browser": "vitest --environment jsdom",
"test:cov": "vitest run --coverage"
},
"keywords": [
"verifiable-credentials",
Expand All @@ -37,11 +37,13 @@
"devDependencies": {
"@types/jest": "^29.5.11",
"@types/node": "^20.10.2",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@vitest/coverage-v8": "^1.2.2",
"jsdom": "^24.0.0",
"ts-node": "^10.9.1",
"tsup": "^8.0.2",
"typescript": "^5.3.2"
"typescript": "^5.3.2",
"vite": "^5.1.1",
"vitest": "^1.2.2"
},
"dependencies": {
"jose": "^5.1.3"
Expand Down
Loading

0 comments on commit fc6e8a4

Please sign in to comment.