feat: add vitest configuration file

- add vitest configuration
- update tsconfig.json so that test files does not throw error
with global definitions such as expect, test
This commit is contained in:
Angel Mendez Cano
2024-02-02 18:54:50 -06:00
parent cc148fc4e2
commit 2a9f6663c1
2 changed files with 33 additions and 1 deletions

View File

@@ -12,9 +12,10 @@
"experimentalDecorators": true,
"esModuleInterop": true,
"noUnusedLocals": true,
"moduleResolution": "node",
"moduleResolution": "Bundler",
"declaration": true,
"resolveJsonModule": true,
"types": ["vitest/globals"],
// TODO: Enable the following options later.
// "forceConsistentCasingInFileNames": true,