After generating a default vue@3 project with the command npm init vue@3
, I noticed that there are multiple tsconfig
files included. One of these files is named tsconfig.vitest.json
. I am curious about when this particular file comes into play. I see that it is used for "type checking" as specified in the package.json
:
"scripts": {
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
},
However, the name implies that it should be utilized when running Vitest itself. Surprisingly, I have not found any indication that Vitest actually uses this configuration file. The standard naming convention for the Vitest config file is vitest.config.ts
. Can someone clarify under what circumstances the tsconfig.vitest.json
file is actually used?