-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
feat: support for multiple setups #90
Comments
Hey, you can use the That flag loads as Does that cover your needs? |
I hadn't thought of that! That would be nicer than the solution I have working but I'm having trouble getting it to work. Possibly because I'm using ESM. My {
"private": true,
"type": "module"
} I ended up with this as a way of getting it all to work together. It works until I use
I'm not really too worried about solving this issue as I have something working without
Thanks for your help! |
Closing this as I think things have been resolved, especially after #91 Please let me know if I've misunderstood. Thanks~ |
I'm happy for this to be closed as I have a workaround (my original scheme of creating a config.js) but just to note: I couldn't get the |
I'm setting
uvu
withpuppeteer
to run tests with call functions in the browser environment via awindow.__API__
global.For development I want a
test:dev
command which usesuvu
to run thewebpack-dev-middleware
dev server programmatically. And I want atest:build
command which creates a build and then runs a different server to serve the distribution directory, and run the same tests against that. I have this working.So I'd like a way to run the same tests with slightly different setup. For now I'm creating a "config.js" in the tests directory and importing that into the setup script but it's a bit clunky so I wonder if this could be done via the
uvu
CLI. For example providing a flag to set a value which can be picked up in the setup script (e.g.--set variable=value
where value could be JSON).The text was updated successfully, but these errors were encountered: