]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: should exclude unit tests from type checking
authorHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 26 Jul 2021 11:20:15 +0000 (19:20 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 26 Jul 2021 11:21:49 +0000 (19:21 +0800)
1. there's a bug in `@cypress/vue` at the moment https://github.com/cypress-io/cypress/issues/17480
2. no need to fail the whole build process only because of a type error
in a spec file.

We may add a specific command to typechecking the spec files later

template/config/base/jsconfig.json

index 7fa2145282b05591286edbb1ef0e17de726cde8c..d3adf1bf0ba0f302ca95de11ac768ab33a3f11a4 100644 (file)
@@ -23,5 +23,8 @@
 
     "src/**/*",
     "src/**/*.vue"
+  ],
+  "exclude": [
+    "src/**/__tests__/**"
   ]
 }