File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,8 @@ export function createJestPuppeteerEnvironment(): JestPuppeteerEnvironmentConstr
1212 pages : any [ ] = [ ] ;
1313 testPath : string | null = null ;
1414
15- constructor ( ...args : any [ ] ) {
16- // Support both (config) and (config, context) jest env ctors without spread typing issues
17- const config = args [ 0 ] ;
18- const context = args [ 1 ] ;
19- if ( args . length >= 2 ) {
20- super ( config , context ) ;
21- } else {
22- super ( config ) ;
23- }
15+ constructor ( config : any , context : any ) {
16+ super ( config , context ) ;
2417 this . testPath = context ?. testPath ?? null ;
2518 }
2619
Original file line number Diff line number Diff line change @@ -12,15 +12,8 @@ export function createJestPuppeteerEnvironment(): JestPuppeteerEnvironmentConstr
1212 pages : any [ ] = [ ] ;
1313 testPath : string | null = null ;
1414
15- constructor ( ...args : any [ ] ) {
16- // Support both (config) and (config, context) jest env ctors without spread typing issues
17- const config = args [ 0 ] ;
18- const context = args [ 1 ] ;
19- if ( args . length >= 2 ) {
20- super ( config , context ) ;
21- } else {
22- super ( config ) ;
23- }
15+ constructor ( config : any , context : any ) {
16+ super ( config , context ) ;
2417 this . testPath = context ?. testPath ?? null ;
2518 }
2619
You can’t perform that action at this time.
0 commit comments