-
Notifications
You must be signed in to change notification settings - Fork 734
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: jest-environment-wrangler
#715
Conversation
🦋 Changeset detectedLatest commit: 5548f11 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
24ca9e9
to
9663365
Compare
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2053263467/npm-package-wrangler-715 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/715/npm-package-wrangler-715 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/2053263467/npm-package-wrangler-715 dev path/to/script.js |
jest-environment-wrangler
jest-environment-wrangler
9663365
to
1adeedf
Compare
@@ -8,7 +8,7 @@ | |||
"check:type": "tsc", | |||
"prestart": "npm run build", | |||
"start": "npx wrangler dev _worker.js", | |||
"prepublish": "npm run build", | |||
"prepublishOnly": "npm run build", |
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.
👍
"description": "A jest environment for Cloudflare Workers, powered by wrangler.", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "esbuild src/index.ts --outfile=dist/index.js --target=es2020 --sourcemap --platform=node --format=cjs" |
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.
Can you add a check:type
script that will run the tsc
checks on this package too?
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.
good catch, adding
A starting point for a jest environment powered by wrangler. This is just a proxy for `jest-environment-miniflare` right now, but we'll add features as we go along.
1adeedf
to
5548f11
Compare
This got missed in #715 during rebasing.
I broke this in #715, reverting this single change.
A starting point for a jest environment powered by wrangler. This is just a proxy for
jest-environment-miniflare
right now, but we'll add features as we go along.