Files
aladin-lite/tsconfig.json
Cédric Foellmi 402e270015 Introducing typescript & vitest
In order to push upward the code quailty of the Javascript code, I propose to introduce Typescript and Vitest for writing unit tests.

This first commit simply introduce the right dependencies and configuration.

Note the presence of “happy-dom” dev dep for manipulating the window object (which is involved in the first test written on Utils).

Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
2023-07-18 12:07:21 +02:00

46 lines
815 B
JSON

{
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"isolatedModules": true,
"noEmit": true,
"lib": [
"esnext",
"dom"
],
"types": [
"node",
"vite/client",
"vitest/globals",
"vitest/importMeta",
],
"typeRoots": [
"node_modules/@types",
"src/types"
],
"baseUrl": "./",
"paths": {
"@/*": [
"./src/*"
],
"#/*": [
"./tests/unit/*"
]
}
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"tests/unit/**/*.ts"
]
}