diff --git a/jest/global-setup.js b/jest/global-setup.js index 65a8dd4dd32a..b28ac7377b86 100644 --- a/jest/global-setup.js +++ b/jest/global-setup.js @@ -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 }