File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 17
17
"test" : " pnpm run test:unit && pnpm run test:integration && pnpm run test:e2e" ,
18
18
"test:benchmark" : " cd ./tests && pnpm run test:benchmark" ,
19
19
"test:e2e" : " pnpm run build:examples && cd tests && pnpm run test:e2e" ,
20
+ "test:ecosystem-ci" : " pnpm run test:unit && cross-env ECO_CI=1 pnpm run test:integration && pnpm run test:e2e" ,
20
21
"test:integration" : " cross-env NODE_OPTIONS='--experimental-vm-modules' vitest run --project integration" ,
21
22
"test:integration:watch" : " cross-env NODE_OPTIONS='--experimental-vm-modules' vitest --project integration" ,
22
23
"test:unit" : " vitest run --project unit*" ,
Original file line number Diff line number Diff line change @@ -18,3 +18,16 @@ expect.addSnapshotSerializer(
18
18
} ,
19
19
} ) ,
20
20
) ;
21
+
22
+ if ( process . env . ECO_CI ) {
23
+ expect . extend ( {
24
+ toMatchSnapshot : ( ) => ( {
25
+ pass : true ,
26
+ message : ( ) => 'Snapshot always passes' ,
27
+ } ) ,
28
+ toMatchInlineSnapshot : ( ) => ( {
29
+ pass : true ,
30
+ message : ( ) => 'Snapshot always passes' ,
31
+ } ) ,
32
+ } ) ;
33
+ }
You can’t perform that action at this time.
0 commit comments