This repository was archived by the owner on May 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +1921
-1192
lines changed
packages/zilliqa-js-core/src Expand file tree Collapse file tree 6 files changed +1921
-1192
lines changed Original file line number Diff line number Diff line change 14
14
//
15
15
// You should have received a copy of the GNU General Public License
16
16
// along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
17
18
require ( 'jest-fetch-mock' ) . enableMocks ( ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -30,11 +30,10 @@ const config = {
30
30
'^@zilliqa-js/zilliqa' : '<rootDir>/packages/zilliqa/src/index.ts' ,
31
31
'^@zilliqa-js/proto$' : '<rootDir>/packages/zilliqa-js-proto/dist/index.js' ,
32
32
'^@zilliqa-js/(.*)$' : '<rootDir>/packages/zilliqa-js-$1/src/index.ts' ,
33
- 'cross-fetch' : 'jest-fetch-mock' ,
34
33
} ,
35
34
globals : {
36
35
'ts-jest' : {
37
- tsConfig : './tsconfig.test.json' ,
36
+ tsconfig : './tsconfig.test.json' ,
38
37
} ,
39
38
} ,
40
39
testURL : 'http://localhost' ,
@@ -43,6 +42,8 @@ const config = {
43
42
'<rootDir>/packages/*/src/**/*.{ts,js}' ,
44
43
'!**/node_modules/**' ,
45
44
] ,
45
+ automock : false ,
46
+ resetMocks : false ,
46
47
setupFiles : [ '<rootDir>/jest-setup.js' ] ,
47
48
} ;
48
49
Original file line number Diff line number Diff line change 33
33
"@types/bn.js" : " ^4.11.3" ,
34
34
"@types/camelcase" : " ^4.1.0" ,
35
35
"@types/fancy-log" : " ^1.3.0" ,
36
- "@types/jest" : " ^23.3.1 " ,
36
+ "@types/jest" : " 26.0.13 " ,
37
37
"@types/node" : " ^16.6.1" ,
38
38
"@types/uuid" : " ^3.4.4" ,
39
39
"@types/webpack" : " ^4.4.17" ,
44
44
"eslint" : " ^7.31.0" ,
45
45
"fancy-log" : " ^1.3.2" ,
46
46
"husky" : " ^7.0.1" ,
47
- "jest" : " ^23.4.2 " ,
47
+ "jest" : " 26.6.3 " ,
48
48
"jest-fetch-mock" : " 3.0.3" ,
49
49
"lerna" : " ^3.18.1" ,
50
50
"prettier" : " ^2.3.2" ,
56
56
"rollup-plugin-node-globals" : " ^1.4.0" ,
57
57
"rollup-plugin-node-resolve" : " ^3.4.0" ,
58
58
"rollup-plugin-typescript2" : " 0.17.1" ,
59
- "ts-jest" : " ^23.1.3 " ,
59
+ "ts-jest" : " 26.5.5 " ,
60
60
"ts-loader" : " 8.0.4" ,
61
61
"ts-node" : " ^7.0.1" ,
62
62
"tslib" : " ^2.3.0" ,
Original file line number Diff line number Diff line change 14
14
//
15
15
// You should have received a copy of the GNU General Public License
16
16
// along with this program. If not, see <https://www.gnu.org/licenses/>.
17
-
18
- import fetch from 'cross-fetch' ;
19
- // import { validation } from '@zilliqa-js/util';
17
+ import 'cross-fetch/polyfill' ;
20
18
import { WithRequest } from './util' ;
21
19
22
20
/**
You can’t perform that action at this time.
0 commit comments