Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Running an npm command for bootstrapping. #3358

Unanswered
leanmiguel asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 1 comment

Comment options

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.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /