File tree 5 files changed +209
-36
lines changed
5 files changed +209
-36
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ module.exports = {
21
21
// original implementations, between each test. It does not affect mocked
22
22
// modules.
23
23
restoreMocks : true ,
24
+ setupFiles : [ './setupJest.js' ] ,
24
25
testEnvironment : 'node' ,
25
26
testRegex : [ '\\.test\\.(ts|js)$' ] ,
26
27
testTimeout : 2500 ,
Original file line number Diff line number Diff line change 29
29
"@ethersproject/bignumber" : " ^5.7.0" ,
30
30
"@ethersproject/bytes" : " ^5.7.0" ,
31
31
"@ethersproject/providers" : " ^5.7.0" ,
32
- "@metamask/base-controller" : " ^1 .0.0" ,
33
- "@metamask/controller-utils" : " ^1.0 .0" ,
34
- "@metamask/network-controller" : " ^2 .0.0" ,
32
+ "@metamask/base-controller" : " ^2 .0.0" ,
33
+ "@metamask/controller-utils" : " ^3.3 .0" ,
34
+ "@metamask/network-controller" : " ^7 .0.0" ,
35
35
"@types/lodash" : " ^4.14.176" ,
36
36
"bignumber.js" : " ^9.0.1" ,
37
37
"fast-json-patch" : " ^3.1.0" ,
38
- "isomorphic-fetch" : " ^3.0.0" ,
39
38
"lodash" : " ^4.17.21"
40
39
},
41
40
"devDependencies" : {
55
54
"eslint-plugin-jest" : " ^24.3.4" ,
56
55
"eslint-plugin-node" : " ^11.1.0" ,
57
56
"eslint-plugin-prettier" : " ^3.3.1" ,
57
+ "isomorphic-fetch" : " ^3.0.0" ,
58
58
"jest" : " ^26.4.2" ,
59
- "nock" : " ^13.1.3 " ,
59
+ "nock" : " ^13.3.0 " ,
60
60
"prettier" : " ^2.2.1" ,
61
61
"prettier-plugin-packagejson" : " ^2.2.11" ,
62
62
"rimraf" : " ^3.0.2" ,
Original file line number Diff line number Diff line change
1
+ // eslint-disable-next-line import/no-unassigned-import
2
+ require ( 'isomorphic-fetch' ) ;
Original file line number Diff line number Diff line change 1
- // eslint-disable-next-line import/no-unassigned-import
2
- import 'isomorphic-fetch' ;
3
1
import SmartTransactionsController from './SmartTransactionsController' ;
4
2
5
3
export default SmartTransactionsController ;
You can’t perform that action at this time.
0 commit comments