Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
cache: 'npm'

- name: Install dependencies
run: npm ci
run: npm ci --legacy-peer-deps

- name: Check formatting
run: npm run format:check
Expand All @@ -61,7 +61,7 @@ jobs:
cache: 'npm'

- name: Install dependencies
run: npm ci
run: npm ci --legacy-peer-deps

- name: Format code
run: npm run format
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
cache: 'npm'

- name: Install dependencies
run: npm ci
run: npm ci --legacy-peer-deps

- name: Type-check, lint, test & build
run: npm run prepublishOnly
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist
node_modules
coverage
*.log
CHANGELOG.md
5 changes: 5 additions & 0 deletions __tests__/react-dom-test-utils-shim.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Shim for react-dom/test-utils removed in React 19.
// @testing-library/react imports this unconditionally but only uses `act`
// as a fallback when React.act is unavailable — React 19 ships act on React directly.
const { act } = require('react');
module.exports = { act };
9 changes: 8 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ export default tseslint.config(
},
},
{
ignores: ['dist/**', 'node_modules/**', 'coverage/**', '*.cjs', '*.min.js', 'eslint.config.js'],
ignores: [
'dist/**',
'node_modules/**',
'coverage/**',
'**/*.cjs',
'*.min.js',
'eslint.config.js',
],
}
);
1 change: 1 addition & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
testMatch: ['**/__tests__/**/*.test.ts', '**/__tests__/**/*.test.tsx'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^react-dom/test-utils$': '<rootDir>/__tests__/react-dom-test-utils-shim.cjs',
},
setupFilesAfterEnv: ['<rootDir>/__tests__/setup.ts'],
collectCoverageFrom: [
Expand Down
Loading