-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spinning server environment spawning into a separate module? #62
Comments
In fact I already did it, I created a separated module called spawnd to spawn an interdependent process. The code to run the server is in Of course if you do it by your own, remove the |
Awesome. I couldn't directly import from |
Ah OK I didn't understood your use-case sorry. Yeah why not putting this piece of code in this repository, it will be easier to maintain. I you want to create a PR you are welcome (contributor), else I can do it. About the npm name, can you add me as a owner? Thanks! |
@neoziro added Once you publish a version from this repository, I'll change my GitHub repo to just have a README.md link to this repo. |
I am working on it, all good on your side. I have still some work, will try to do it today. |
The
jest-puppeteer
preset has been working great for tests with Jest & Puppeteer. However, I'd like to switch to cross-browser Selenium tests. The launching of a server in setup and killing it in teardown is great and it looks like the logic to spawn a server ifconfig.server
exists is separate from spinning up a Puppeteer page. Do you think it could be moved into a separate module separate from Puppeteer?In
lib/global.js
, it couldimport { setup, teardown } from "jest-server"
.setup
couldawait teardown();
after creating the browser andteardown
couldawait teardown();
before closing the browser.The text was updated successfully, but these errors were encountered: