-
Notifications
You must be signed in to change notification settings - Fork 949
Move the unenv tests from the preset to wrangler e2e #10031
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
Conversation
🦋 Changeset detectedLatest commit: a1af08d The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the Depending on your changes, running Notes:
|
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather we don't mix Worker code and Node.js test in the same tsconfig set up.
The seed-files directory is already the place for this sort of thing.
I think we should have something here more along the lines of this: vicb/unenv-tests...pbd/unenv-tests-alt
a56d5a7
to
84944bd
Compare
@petebacondarwin I have refactored the code to remove changes to the eslint config. The changes in PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK let's go with this.
Did you see, by the way, in my side branch, that you can simplify the remote tests quite a lot by using wrangler dev --remote
? It saves having to create and delete a Worker in each test.
No I didn't. Thanks for the reviews and feedback! |
Move the preset tests from the preset package to wrangler e2e.
This is done to allow removing the dependency from the preset to wrangler so that wrangler can depend on the workspace version of the preset.
The tests now run both locally and in prod.
/cc @petebacondarwin @edmundhung @jamesopstad