File tree Expand file tree Collapse file tree 3 files changed +18
-13
lines changed Expand file tree Collapse file tree 3 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: deploy
2
2
3
3
on :
4
4
workflow_run :
5
- workflows : ['build and test']
5
+ workflows : ['test']
6
6
types :
7
7
- completed
8
8
Original file line number Diff line number Diff line change 1
- name : build and test
1
+ name : test
2
2
3
3
on :
4
4
push :
27
27
- run : CHECK_LANGUAGES=true npm run test lang
28
28
continue-on-error : true
29
29
- run : npm run test
30
- - run : npm run build --if-present
Original file line number Diff line number Diff line change @@ -10,13 +10,19 @@ beforeEach(() => {
10
10
setDomPreviewContext ( expect . getState ( ) . currentTestName ?? 'initial' ) ;
11
11
} ) ;
12
12
13
- afterEach ( ( ) => {
14
- // Run dom-preview's debug if the test fails
15
- // if (context.task?.result?.state === 'fail') {
16
- debug ( ) ;
17
- // }
18
- // Clean up react-testing-library. We need to manually do this because we
19
- // turn off the automatic teardown in the vite.config.
20
- // This needs to happen after dom-preview.
21
- cleanup ( ) ;
22
- } ) ;
13
+ const isCI = process . env . CI === 'true' ;
14
+
15
+ afterEach (
16
+ isCI
17
+ ? ( ) => { }
18
+ : ( ) => {
19
+ // Run dom-preview's debug if the test fails
20
+ // if (context.task?.result?.state === 'fail') {
21
+ debug ( ) ;
22
+ // }
23
+ // Clean up react-testing-library. We need to manually do this because we
24
+ // turn off the automatic teardown in the vite.config.
25
+ // This needs to happen after dom-preview.
26
+ cleanup ( ) ;
27
+ } ,
28
+ ) ;
You can’t perform that action at this time.
0 commit comments