Skip to content

Commit

Permalink
only execute the global-setup once
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Apr 7, 2023
1 parent a82e953 commit a5073dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jest/global-setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
let { execSync } = require('child_process')

let state = { ran: false }
module.exports = function () {
if (state.ran) return
execSync('npm run build:rust', { stdio: 'ignore' })
execSync('npm run generate:plugin-list', { stdio: 'ignore' })
state.ran = true
}

0 comments on commit a5073dd

Please sign in to comment.