-
-
Notifications
You must be signed in to change notification settings - Fork 751
Running an npm command for bootstrapping. #3358
Unanswered
leanmiguel
asked this question in
Q&A
-
I'm currently using create-react-app and want to run my server before the tests run.
I'm not able to see any docs regarding this, but I know it would be happening in the bootstrap function. Any ideas on how to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
currently just have this for now
const { exec } = require("child_process");
{...
bootstrap: async () => {
await exec("npm run dev");
},
}
EDIT:
This doesn't seem to work as it opens a normal browser window, and the tests don't seem to begin.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment