From: Haoqun Jiang Date: Fri, 15 Jul 2022 04:05:44 +0000 (+0800) Subject: fix: fix Cypress Component Testing TypeScript & ESLint warnings X-Git-Tag: v3.3.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae11583088d844892aab75b65b999dd45e842bb7;p=thirdparty%2Fvuejs%2Fcreate-vue.git fix: fix Cypress Component Testing TypeScript & ESLint warnings --- diff --git a/template/config/cypress-ct/cypress/support/component.ts b/template/config/cypress-ct/cypress/support/component.ts index 38ca910f..04e4c352 100644 --- a/template/config/cypress-ct/cypress/support/component.ts +++ b/template/config/cypress-ct/cypress/support/component.ts @@ -28,6 +28,7 @@ import { mount } from 'cypress/vue' // your custom command. // Alternatively, can be defined in cypress/support/component.d.ts // with a at the top of your spec. +/* eslint-disable @typescript-eslint/no-namespace */ declare global { namespace Cypress { interface Chainable { diff --git a/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json b/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json index 29cbaa47..b21f0843 100644 --- a/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json +++ b/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json @@ -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