Skip to content

Commit 17d25f2

Browse files
author
Mingze
authored
test(cypress): Add TS type support to Cypress test files (#619)
1 parent 64b92ac commit 17d25f2

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,11 @@ module.exports = {
2525
'@typescript-eslint/camelcase': 'off',
2626
},
2727
},
28+
{
29+
files: ['*.e2e.test.js'],
30+
rules: {
31+
'spaced-comment': 'off', // Allow JS files to use TS Triple-Slash Directives
32+
},
33+
},
2834
],
2935
};

test/integration/Highlight.e2e.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// <reference types="Cypress" />
2-
describe('Highlight', () => {
1+
/// <reference types="Cypress" />
2+
describe('Highlights', () => {
33
beforeEach(() => {
44
cy.visit('/');
55
});

test/integration/Region.e2e.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <reference types="Cypress" />
1+
/// <reference types="Cypress" />
22
describe('Regions', () => {
33
beforeEach(() => {
44
cy.visit('/');

test/integration/Sanity.e2e.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <reference types="Cypress" />
1+
/// <reference types="Cypress" />
22
describe('Annotations', () => {
33
beforeEach(() => {
44
cy.visit('/');

0 commit comments

Comments
 (0)