File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 24
24
25
25
// 'context()' definition requires additional dependency on webpack-env package.
26
26
// eslint-disable-next-line @typescript-eslint/no-explicit-any
27
- const testsContext = ( require as any ) . context (
27
+ const integrationTestContext = ( require as any ) . context (
28
28
'../../test/integration/api' ,
29
29
true ,
30
30
/ ^ .* \. t e s t \. t s $ /
31
31
) ;
32
- const browserTests = testsContext . keys ( ) ;
33
- browserTests . forEach ( testsContext ) ;
32
+ const integrationTests = integrationTestContext . keys ( ) ;
33
+ integrationTests . forEach ( integrationTestContext ) ;
Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ import { FieldValue } from '../../../src/compat/field_value';
35
35
import { FirebaseApp } from '@firebase/app-types' ;
36
36
import {
37
37
Firestore ,
38
- IndexedDbPersistenceProvider ,
39
- MemoryPersistenceProvider
38
+ IndexedDbPersistenceProvider
40
39
} from '../../../src/api/database' ;
41
40
import { Provider , ComponentContainer } from '@firebase/component' ;
42
41
@@ -77,9 +76,7 @@ export function newTestFirestore(
77
76
? new Firestore (
78
77
app ,
79
78
new Provider ( 'auth-internal' , new ComponentContainer ( 'default' ) ) ,
80
- process . env . USE_MOCK_PERSISTENCE === 'Yes'
81
- ? new IndexedDbPersistenceProvider ( )
82
- : new MemoryPersistenceProvider ( )
79
+ new IndexedDbPersistenceProvider ( )
83
80
)
84
81
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
82
( firebase as any ) . firestore ( app ) ;
Original file line number Diff line number Diff line change 24
24
25
25
// 'context()' definition requires additional dependency on webpack-env package.
26
26
// eslint-disable-next-line @typescript-eslint/no-explicit-any
27
- const testsContext = ( require as any ) . context (
27
+ const unitTestsContext = ( require as any ) . context (
28
28
'.' ,
29
29
true ,
30
30
/ ^ ( (? ! n o d e ) .) * \. t e s t $ /
31
31
) ;
32
- const browserTests = testsContext
32
+ const unitTests = unitTestsContext
33
33
. keys ( )
34
34
. filter ( ( file : string ) => ! file . match ( / ( [ \/ . ] ) n o d e ( [ \/ . ] ) / ) ) ;
35
- browserTests . forEach ( testsContext ) ;
35
+ unitTests . forEach ( unitTestsContext ) ;
You can’t perform that action at this time.
0 commit comments