Skip to content

Commit 29cd6a8

Browse files
committed
fix(ci): test:e2e
wip
1 parent 9fa27d2 commit 29cd6a8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Diff for: .github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ jobs:
106106
- name: Build
107107
run: npm run build
108108

109+
- name: Stop any ipfs daemon before tests
110+
run: ipfs shutdown || true
111+
109112
- name: Test
110113
run: npm run test
111114

@@ -114,6 +117,8 @@ jobs:
114117
with:
115118
working-directory: ${{ github.workspace }}
116119
run: npm run test:e2e
120+
env:
121+
DEBUG: '*'
117122

118123
- name: Lint
119124
run: npm run lint

Diff for: test/e2e/launch.e2e.test.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ test.describe.serial('Application launch', async () => {
1616

1717
test.afterEach(async () => {
1818
if (app) {
19-
await app.close()
19+
try {
20+
await app.close()
21+
} catch (e) {
22+
if (e.message.includes('has been closed')) return
23+
throw e
24+
}
2025
}
2126
})
2227

0 commit comments

Comments
 (0)