File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 DistributionType ,
55 EnvironmentType ,
66} from '@metamask/remote-feature-flag-controller' ;
7- import { cleanAll , enableNetConnect } from 'nock' ;
7+ import { enableNetConnect } from 'nock' ;
88
99import { importSecretRecoveryPhrase , sendTransaction } from './utilities' ;
1010import { Wallet } from './Wallet' ;
@@ -51,7 +51,6 @@ describe('Wallet', () => {
5151
5252 afterEach ( async ( ) => {
5353 await wallet ?. destroy ( ) ;
54- cleanAll ( ) ;
5554 enableNetConnect ( ) ;
5655 jest . useRealTimers ( ) ;
5756 } ) ;
@@ -82,6 +81,7 @@ describe('Wallet', () => {
8281 { networkClientId : 'sepolia' } ,
8382 ) ;
8483
84+ // Advance timers by an arbitrary value to trigger downstream timer logic.
8585 const hash = await jest . advanceTimersByTimeAsync ( 60_000 ) . then ( ( ) => result ) ;
8686
8787 expect ( hash ) . toStrictEqual ( expect . any ( String ) ) ;
@@ -96,7 +96,7 @@ describe('Wallet', () => {
9696 } ) ,
9797 } ) ,
9898 ) ;
99- } , 30_000 ) ;
99+ } , 10_000 ) ;
100100
101101 it ( 'exposes state' , async ( ) => {
102102 wallet = await setupWallet ( ) ;
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ export function bindMessengerAction<
4646 ) => ExtractActionResponse < MessengerActions < Msgr > , ActionType > ;
4747}
4848
49- // Method syntax provides bivariant parameter checking, which is needed to
50- // collect heterogeneous InitializationConfiguration values in a single array.
5149export type InitializationConfiguration < Instance , InstanceMessenger > = {
5250 name : string ;
51+ // This is a method as opposed to function property in order to collect
52+ // heterogeneous InitializationConfiguration values in a single array.
5353 init ( args : InitFunctionArguments < Instance , InstanceMessenger > ) : {
5454 instance : Instance ;
5555 } ;
You can’t perform that action at this time.
0 commit comments