Skip to content

Commit

Permalink
Activate Vitest globals
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
  • Loading branch information
abompard committed Nov 8, 2023
1 parent cf350d8 commit 99a2aab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/tsconfig.vitest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"node",
"jsdom",
"@intlify/unplugin-vue-i18n/messages",
"@testing-library/jest-dom"
"@testing-library/jest-dom",
"vitest/globals"
]
}
}
1 change: 1 addition & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const config: UserConfig = {
environment: "jsdom",
testTimeout: 20000,
setupFiles: ["./src/tests.ts"],
globals: true,
coverage: {
reporter: ["text", "json", "html"],
all: true,
Expand Down

0 comments on commit 99a2aab

Please sign in to comment.