Skip to content

Commit 2e89d05

Browse files
authored
Chore: [AEA-0000] - migrate jest to vitest (#2950)
## Summary - 🤖 Operational or Infrastructure Change ### Details Migrate testing framework from jest to vitest
1 parent 186d167 commit 2e89d05

136 files changed

Lines changed: 4974 additions & 7582 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"ms-python.flake8",
2828
"eamodio.gitlens",
2929
"github.vscode-pull-request-github",
30-
"orta.vscode-jest",
30+
"vitest-explorer",
3131
"42crunch.vscode-openapi",
3232
"mermade.openapi-lint",
3333
"christian-kohler.npm-intellisense",

.vscode/eps-prescription-status-update-api.code-workspace

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@
7070
}
7171
],
7272
"settings": {
73-
"jest.disabledWorkspaceFolders": [
74-
"eps-prescription-status-update-monorepo",
75-
"packages/common/testing",
76-
"packages/specification"
77-
],
7873
"files.exclude": {
7974
"packages/": true
8075
},
@@ -158,11 +153,7 @@
158153
],
159154
"cSpell.dictionaries": ["en-GB"],
160155
"cSpell.ignorePaths": ["package-lock.json", "node_modules", ".vscode"],
161-
"jest.jestCommandLine": "NODE_OPTIONS=--experimental-vm-modules node_modules/.bin/jest --no-cache",
162-
"jest.nodeEnv": {
163-
"POWERTOOLS_DEV": true
164-
},
165-
"typescript.tsdk": "eps-prescription-status-update-monorepo/node_modules/typescript/lib",
156+
"js/ts.tsdk.path": "eps-prescription-status-update-monorepo/node_modules/typescript/lib",
166157
"eslint.useFlatConfig": true,
167158
"eslint.format.enable": true
168159
},
@@ -174,7 +165,7 @@
174165
"ms-python.flake8",
175166
"eamodio.gitlens",
176167
"github.vscode-pull-request-github",
177-
"orta.vscode-jest",
168+
"vitest-explorer",
178169
"42crunch.vscode-openapi",
179170
"mermade.openapi-lint",
180171
"redhat.vscode-yaml",

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export default [
118118
languageOptions: {
119119
parser: tsParser,
120120
globals: {
121-
...globals.jest,
122121
...globals.node,
123122
},
124123
},

jest.default.config.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)