Skip to content

Commit 29d4f6e

Browse files
authored
Fix issue in test helpers (#190)
1 parent 62c1039 commit 29d4f6e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ module.exports = {
3939
},
4040
],
4141

42+
'import/extensions': 'off',
4243
'import/no-extraneous-dependencies': [
4344
'error',
4445
{

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
cache: 'yarn'
1414
- name: Install
1515
run: yarn install --immutable
16+
17+
# `yarn build` does not type-check the tests
18+
- name: tsc
19+
run: yarn tsc
20+
1621
- name: Build
1722
run: yarn build
1823
- name: Test

src/__tests__/__helpers__/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
2-
// @ts-ignore -- The type definitions don't define this entrypoint
3-
import matchers from '@testing-library/jest-dom/matchers';
1+
import matchers from '@testing-library/jest-dom/matchers.js';
42
import { expect } from 'vitest';
53

6-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7-
expect.extend(matchers);
4+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any
5+
expect.extend(matchers as any);
86

97
export const skeletonSelector = 'span.react-loading-skeleton';
108

0 commit comments

Comments
 (0)