Skip to content

Commit 14efe97

Browse files
committed
tests(build): Prevent build/build-ts from overlapping
1 parent 2af978a commit 14efe97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

__tests__/buildTS.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
jest.setTimeout(600000)
22

3+
const sleep = t => new Promise(resolve => setTimeout(resolve, t))
4+
35
const runTests = require('./build.helper.js').runTests
46

57
test('electron:build-ts', async () => {
8+
// Prevent build/build-ts tests from overlapping
9+
await sleep(2000)
610
await runTests(true)
711
})

0 commit comments

Comments
 (0)