Skip to content

Commit

Permalink
test: migrate unit test to vitest (#671)
Browse files Browse the repository at this point in the history
* test(web): migrate to vitest

* refactor: purge jest from repo

* test(reg-scraper): remove test

* test(web): update filter unit test

* chore: add changeset

* any

* test: coverage
  • Loading branch information
leomotors authored Feb 19, 2024
1 parent e374a07 commit 9c02387
Show file tree
Hide file tree
Showing 80 changed files with 1,819 additions and 2,416 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-insects-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"web": patch
---

test: migrate unit test
6 changes: 1 addition & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint"
]
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
}
16 changes: 0 additions & 16 deletions apps/admin-api/jest.config.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/admin-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@
"devDependencies": {
"@types/cookie-parser": "^1.4.6",
"@types/express": "^4.17.21",
"@types/jest": "29.5.12",
"@types/node": "^20.11.17",
"eslint": "8.56.0",
"jest": "29.7.0",
"ts-jest": "29.1.2",
"ts-morph": "^20.0.0",
"typescript": "~5.3.3"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/admin-api/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "../../node_modules", "jest.config.ts", "test", "dist", "**/*spec.ts"]
"exclude": ["node_modules", "../../node_modules", "test", "dist", "**/*spec.ts"]
}
1 change: 0 additions & 1 deletion apps/admin-api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"include": ["next-env.d.ts", "src/**/*.ts", "generate-typings.ts"],
"exclude": [
"node_modules",
"jest.config.ts",
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
Expand Down
1 change: 0 additions & 1 deletion apps/admin-api/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"baseUrl": "./"
},
"include": [
"jest.config.ts",
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
Expand Down
1 change: 0 additions & 1 deletion apps/admin-web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": [
"node_modules",
"jest.config.ts",
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
Expand Down
16 changes: 0 additions & 16 deletions apps/api/jest.config.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@
"@nestjs/cli": "^9.5.0",
"@types/cookie-parser": "^1.4.6",
"@types/express": "^4.17.21",
"@types/jest": "29.5.12",
"@types/node": "20.11.17",
"@types/passport-jwt": "^3.0.13",
"eslint": "8.56.0",
"jest": "29.7.0",
"ts-jest": "29.1.2",
"ts-morph": "^20.0.0",
"typescript": "~5.3.3"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/api/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "../../node_modules", "jest.config.ts", "test", "dist", "**/*spec.ts"]
"exclude": ["node_modules", "../../node_modules", "test", "dist", "**/*spec.ts"]
}
1 change: 0 additions & 1 deletion apps/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"include": ["next-env.d.ts", "src/**/*.ts"],
"exclude": [
"node_modules",
"jest.config.ts",
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
Expand Down
1 change: 0 additions & 1 deletion apps/api/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"baseUrl": "./"
},
"include": [
"jest.config.ts",
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
Expand Down
16 changes: 0 additions & 16 deletions apps/reg-scraper/jest.config.ts

This file was deleted.

2 changes: 0 additions & 2 deletions apps/reg-scraper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
},
"devDependencies": {
"@nestjs/cli": "^9.5.0",
"@types/jest": "29.5.12",
"@types/node": "20.11.17",
"@types/tough-cookie": "4.0.5",
"eslint": "8.56.0",
"jest": "29.7.0",
"typescript": "~5.3.3"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 9c02387

Please sign in to comment.