Skip to content

Commit 4a6eddc

Browse files
authored
Tracks Cypress component support file (#867)
1 parent 5f4e139 commit 4a6eddc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/knip/fixtures/plugins/cypress2/cypress/support/component.ts

Whitespace-only changes.

packages/knip/src/plugins/cypress/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const TEST_FILE_PATTERNS = ['cypress/e2e/**/*.cy.{js,jsx,ts,tsx}'];
1919
const SUPPORT_FILE_PATTERNS = [
2020
'cypress/support/e2e.{js,jsx,ts,tsx}',
2121
'cypress/support/commands.{js,ts}',
22+
'cypress/support/component.{js,ts}',
2223
'cypress/plugins/index.js', // Deprecated since Cypress v10
2324
];
2425

packages/knip/test/plugins/cypress2.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('Find dependencies with the Cypress plugin (2)', async () => {
1515

1616
assert.deepEqual(counters, {
1717
...baseCounters,
18-
processed: 5,
19-
total: 5,
18+
processed: 6,
19+
total: 6,
2020
});
2121
});

0 commit comments

Comments
 (0)