File tree 7 files changed +834
-1262
lines changed
7 files changed +834
-1262
lines changed Original file line number Diff line number Diff line change 51
51
"@rollup/plugin-replace" : " ^2.3.0" ,
52
52
"@types/fs-extra" : " ^8.0.1" ,
53
53
"@types/glob-parent" : " ^5.1.0" ,
54
- "@types/jest" : " ^26 .0.10 " ,
54
+ "@types/jest" : " ^29 .0.3 " ,
55
55
"@types/node" : " ^13.7.1" ,
56
56
"@types/react" : " ^17.0.49" ,
57
57
"@types/react-dom" : " ^17.0.17" ,
73
73
"eslint-plugin-react-hooks" : " ^4.6.0" ,
74
74
"fs-extra" : " ^8.1.0" ,
75
75
"glob-parent" : " ^5.1.0" ,
76
- "jest" : " ^27.0.4" ,
76
+ "jest" : " ^29.0.3" ,
77
+ "jest-environment-jsdom" : " ^29.0.3" ,
77
78
"jsdoc-tests" : " ^0.1.0" ,
78
79
"lerna" : " ^5.5.1" ,
79
80
"mobx" : " ^5.15.4" ,
80
81
"prettier" : " ^2.1.0" ,
81
82
"rimraf" : " ^3.0.2" ,
82
83
"rollup" : " ^1.28.0" ,
83
84
"rollup-plugin-terser" : " ^7.0.0" ,
84
- "ts-jest" : " ^27.1.3 " ,
85
+ "ts-jest" : " ^29.0.1 " ,
85
86
"ts-node" : " ^10.9.1" ,
86
87
"tslib" : " ^2.3.1" ,
87
88
"typedoc" : " ^0.23.11" ,
Original file line number Diff line number Diff line change 5
5
"globals" : {
6
6
"__DEV__" : true
7
7
},
8
+ "transform" : {
9
+ "^.+\\ .tsx?$" : " ts-jest"
10
+ },
8
11
"testPathIgnorePatterns" : [
9
12
" examples" ,
10
13
" packages/reactant-cli/templates" ,
Original file line number Diff line number Diff line change 5
5
"globals" : {
6
6
"__DEV__" : false
7
7
},
8
+ "transform" : {
9
+ "^.+\\ .tsx?$" : " ts-jest"
10
+ },
8
11
"testPathIgnorePatterns" : [
9
12
" examples" ,
10
13
" packages/reactant-cli/templates" ,
Original file line number Diff line number Diff line change 3
3
"testEnvironment" : " jsdom" ,
4
4
"rootDir" : " ../../" ,
5
5
"globals" : {
6
- "__DEV__" : true ,
7
- "ts-jest" : {
8
- "tsconfig" : {
6
+ "__DEV__" : true
7
+ },
8
+ "transform" : {
9
+ "^.+\\ .tsx?$" : [
10
+ " ts-jest" ,
11
+ {
9
12
"useDefineForClassFields" : true
10
13
}
11
- }
14
+ ]
12
15
},
13
16
"testPathIgnorePatterns" : [
14
17
" examples" ,
Original file line number Diff line number Diff line change 3
3
"testEnvironment" : " jsdom" ,
4
4
"rootDir" : " ../../" ,
5
5
"globals" : {
6
- "__DEV__" : true ,
7
- "ts-jest" : {
8
- "tsconfig" : {
6
+ "__DEV__" : true
7
+ },
8
+ "transform" : {
9
+ "^.+\\ .tsx?$" : [
10
+ " ts-jest" ,
11
+ {
9
12
"target" : " ES2015"
10
13
}
11
- }
14
+ ]
12
15
},
13
16
"testMatch" : [" **/?(*.)+(es2015).[jt]s?(x)" ],
14
17
"testPathIgnorePatterns" : [
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import chalk from 'chalk';
7
7
import { array } from 'yargs' ;
8
8
import { handleWorkspaces , Package } from './workspaces' ;
9
9
10
- const projects = array ( 'p' ) . argv . p ;
10
+ const { p : projects } = array ( 'p' ) . argv as { p : string [ ] } ;
11
11
12
12
type CompileOption = {
13
13
currentPath : string ;
@@ -58,7 +58,7 @@ const compileTypeScript = ({
58
58
if ( result . emitSkipped ) {
59
59
const message = result . diagnostics
60
60
. map (
61
- diagnostic =>
61
+ ( diagnostic ) =>
62
62
`${ ts . DiagnosticCategory [ diagnostic . category ] } ${ diagnostic . code } (${
63
63
diagnostic . file
64
64
} :${ diagnostic . start } ): ${ diagnostic . messageText } `
You can’t perform that action at this time.
0 commit comments