]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: fix Cypress Component Testing TypeScript & ESLint warnings
authorHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 15 Jul 2022 04:05:44 +0000 (12:05 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 15 Jul 2022 04:05:44 +0000 (12:05 +0800)
template/config/cypress-ct/cypress/support/component.ts
template/tsconfig/cypress-ct/tsconfig.cypress-ct.json

index 38ca910fe4209b20e5e0154ad13d16988abe93ac..04e4c352b8c5115ee57961d93d6c4a950da15c5c 100644 (file)
@@ -28,6 +28,7 @@ import { mount } from 'cypress/vue'
 // your custom command.
 // Alternatively, can be defined in cypress/support/component.d.ts
 // with a <reference path="./component" /> at the top of your spec.
+/* eslint-disable @typescript-eslint/no-namespace */
 declare global {
   namespace Cypress {
     interface Chainable {
index 29cbaa47c5929d61c8fc77e046e865ee5d01a17f..b21f0843448bcb538336232a2a3f52ef34e01ad8 100644 (file)
@@ -1,6 +1,12 @@
 {
   "extends": "./tsconfig.app.json",
-  "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "cypress/support/component.*"],
+  "include": [
+    "env.d.ts",
+    "src/**/*",
+    "src/**/*.vue",
+    "cypress/support/component.*",
+    "cypress/support/commands.ts"
+  ],
   "exclude": [],
   "compilerOptions": {
     "composite": true