]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix(vitest): allow to use path mapping in tests (#46)
authorCédric Exbrayat <cexbrayat@users.noreply.github.com>
Thu, 10 Feb 2022 07:00:11 +0000 (08:00 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Feb 2022 07:00:11 +0000 (15:00 +0800)
template/tsconfig/vitest/tsconfig.vitest.json

index f70b05259035ac6a1d7629667ae1530d39a3524c..566756808ede2c8f88d7b665ca2d559bd44ed78e 100644 (file)
@@ -3,6 +3,10 @@
   "include": ["src/**/__tests__/*"],
   "compilerOptions": {
     "composite": true,
+    "baseUrl": ".",
+    "paths": {
+      "@/*": ["./src/*"]
+    },
     "types": ["node", "jsdom"]
   }
 }