File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "transform" : {
3
+ "^.+\\ .tsx?$" : " ts-jest"
4
+ },
5
+ "testRegex" : " /tests/.*\\ .test\\ .(tsx?)$" ,
6
+ "moduleFileExtensions" : [
7
+ " ts" ,
8
+ " js" ,
9
+ " tsx" ,
10
+ " json" ,
11
+ " node"
12
+ ],
13
+ "testEnvironment" : " jsdom"
14
+ }
Original file line number Diff line number Diff line change 59
59
"rename" : " bash -c 'for file in *.js; do mv $file \" ${file%.js}.$0.js\" ; done'" ,
60
60
"build" : " tsc --module commonjs && npm run rename -- cjs && tsc --declaration" ,
61
61
"prebuild" : " rm -r metadata stylesheet.json index* types* styles* || true" ,
62
- "postbuild" : " cp resources/stylesheet.json stylesheet.json"
62
+ "postbuild" : " cp resources/stylesheet.json stylesheet.json" ,
63
+ "test" : " jest --config jestconfig.json"
63
64
},
64
65
"license" : " MIT" ,
65
66
"peerDependencies" : {
66
67
"react" : " >=16"
67
68
},
68
69
"devDependencies" : {
70
+ "@types/jest" : " ^29.5.7" ,
69
71
"@types/react" : " ^18.2.34" ,
72
+ "jest" : " ^29.7.0" ,
73
+ "jest-environment-jsdom" : " ^29.7.0" ,
74
+ "ts-jest" : " ^29.1.1" ,
70
75
"tslib" : " ^2.6.2" ,
71
76
"tsx" : " ^3.12.10" ,
72
77
"typescript" : " ^5.2.2"
You can’t perform that action at this time.
0 commit comments