File tree 2 files changed +13
-5
lines changed
__tests__/integration/configuration
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ module.exports = {
14
14
wsUpdateDelay : process . env . TEST_WS_UPDATE_DELAY || 1000 ,
15
15
16
16
// Defines for how long the startMultipleWalletsForTest can run
17
- walletStartTimeout : process . env . TEST_WALLET_START_TIMEOUT || 60000 ,
17
+ walletStartTimeout : process . env . TEST_WALLET_START_TIMEOUT || 180000 ,
18
18
} ;
Original file line number Diff line number Diff line change @@ -16,15 +16,23 @@ function getTestNameFromGlobalJasmineInstance() {
16
16
// Mock config file
17
17
jest . mock (
18
18
'./src/config' ,
19
- ( ) => require ( './__tests__/integration/configuration/config-fixture.js' ) ,
20
- { virtual : true }
19
+ ( ) => {
20
+ let config = require ( './__tests__/integration/configuration/config-fixture.js' ) ;
21
+ if ( config . default ) config = config . default ;
22
+ return config ;
23
+ } ,
24
+ { virtual : true } ,
21
25
) ;
22
26
23
27
// Enable features for tests
24
28
jest . mock (
25
29
'./src/constants' ,
26
- ( ) => require ( './__tests__/__fixtures__/feature-fixture' ) ,
27
- { virtual : true }
30
+ ( ) => {
31
+ let config = require ( './__tests__/__fixtures__/feature-fixture' ) ;
32
+ if ( config . default ) config = config . default ;
33
+ return config ;
34
+ } ,
35
+ { virtual : true } ,
28
36
) ;
29
37
30
38
// This function will run before each test file is executed
You can’t perform that action at this time.
0 commit comments