File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ import '../../index';
26
26
27
27
// 'context()' definition requires additional dependency on webpack-env package.
28
28
// eslint-disable-next-line @typescript-eslint/no-explicit-any
29
- const testsContext = ( require as any ) . context ( '.' , true , / .t e s t $ / ) ;
29
+ const testsContext = ( require as any ) . context ( '.' , true , / ^ ( (? ! n o d e ) . ) * \ .t e s t $ / ) ;
30
30
const browserTests = testsContext
31
31
. keys ( )
32
- . filter ( ( file : string ) => file . indexOf ( '/ node/' ) < 0 ) ;
32
+ . filter ( ( file : string ) => ! file . match ( / ( [ \/ . ] ) n o d e ( [ \/ . ] ) / ) ) ;
33
33
browserTests . forEach ( testsContext ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import '../../src/platform_browser/browser_init';
26
26
27
27
// 'context()' definition requires additional dependency on webpack-env package.
28
28
// eslint-disable-next-line @typescript-eslint/no-explicit-any
29
- const testsContext = ( require as any ) . context ( '.' , true , / .t e s t $ / ) ;
29
+ const testsContext = ( require as any ) . context ( '.' , true , / ^ ( (? ! n o d e ) . ) * \ .t e s t $ / ) ;
30
30
const browserTests = testsContext
31
31
. keys ( )
32
32
. filter ( ( file : string ) => ! file . match ( / ( [ \/ . ] ) n o d e ( [ \/ . ] ) / ) ) ;
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ const protoJsReader = testUserDataReader(/* useProto3Json= */ false);
96
96
*/
97
97
export function serializerTest (
98
98
protobufJsVerifier : ( jsonValue : api . Value ) => void = ( ) => { }
99
- ) {
99
+ ) : void {
100
100
describe ( 'Serializer' , ( ) => {
101
101
const partition = new DatabaseId ( 'p' , 'd' ) ;
102
102
const s = new JsonProtoSerializer ( partition , { useProto3Json : false } ) ;
You can’t perform that action at this time.
0 commit comments