Skip to content

Commit a5073dd

Browse files
committed
only execute the global-setup once
1 parent a82e953 commit a5073dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jest/global-setup.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
let { execSync } = require('child_process')
22

3+
let state = { ran: false }
34
module.exports = function () {
5+
if (state.ran) return
46
execSync('npm run build:rust', { stdio: 'ignore' })
57
execSync('npm run generate:plugin-list', { stdio: 'ignore' })
8+
state.ran = true
69
}

0 commit comments

Comments
 (0)