Skip to content

Commit 1e01321

Browse files
authored
Merge pull request #48 from phDooY/feature/react-19-support
Add React 19 support and fix TypeScript issues
2 parents 72df76d + 527366b commit 1e01321

File tree

7 files changed

+2390
-1749
lines changed

7 files changed

+2390
-1749
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
2424

25-
hidden
25+
hidden
26+
.cursorrules

jest.config.js

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
const config = {
2-
roots: ["<rootDir>/tests"],
1+
module.exports = {
2+
testEnvironment: 'jsdom',
33
transform: {
4-
"^.+\\.tsx?$": "ts-jest",
4+
'^.+\\.(ts|tsx)$': [
5+
'ts-jest',
6+
{
7+
tsconfig: 'tsconfig.json',
8+
isolatedModules: true,
9+
diagnostics: {
10+
ignoreCodes: [151001]
11+
}
12+
}
13+
]
514
},
6-
preset: "ts-jest",
7-
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
8-
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "d.ts"],
915
moduleNameMapper: {
10-
"^.+\\.(css|less|scss)$": "identity-obj-proxy",
11-
},
12-
testEnvironment: "jsdom",
16+
'\\.(css|less|scss|sass)$': 'identity-obj-proxy'
17+
}
1318
};
14-
module.exports = config;

0 commit comments

Comments
 (0)