Skip to content

Commit ae11583

Browse files
committed
fix: fix Cypress Component Testing TypeScript & ESLint warnings
1 parent 6e7db56 commit ae11583

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

template/config/cypress-ct/cypress/support/component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { mount } from 'cypress/vue'
2828
// your custom command.
2929
// Alternatively, can be defined in cypress/support/component.d.ts
3030
// with a <reference path="./component" /> at the top of your spec.
31+
/* eslint-disable @typescript-eslint/no-namespace */
3132
declare global {
3233
namespace Cypress {
3334
interface Chainable {

template/tsconfig/cypress-ct/tsconfig.cypress-ct.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"extends": "./tsconfig.app.json",
3-
"include": ["env.d.ts", "src/**/*", "src/**/*.vue", "cypress/support/component.*"],
3+
"include": [
4+
"env.d.ts",
5+
"src/**/*",
6+
"src/**/*.vue",
7+
"cypress/support/component.*",
8+
"cypress/support/commands.ts"
9+
],
410
"exclude": [],
511
"compilerOptions": {
612
"composite": true

0 commit comments

Comments
 (0)