Skip to content
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

Merged
merged 1 commit into from
Mar 28, 2022
Merged

Conversation

threepointone
Copy link
Contributor

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.

@changeset-bot
Copy link

changeset-bot bot commented Mar 27, 2022

🦋 Changeset detected

Latest commit: 5548f11

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
jest-environment-wrangler Patch

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 27, 2022

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 with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2053263467/npm-package-wrangler-715 dev path/to/script.js

@threepointone threepointone changed the title WIP feat: jest-environment-wrangler feat: jest-environment-wrangler Mar 28, 2022
@threepointone threepointone marked this pull request as ready for review March 28, 2022 05:32
@@ -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",
Copy link
Contributor

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"
Copy link
Contributor

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?

Copy link
Contributor Author

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.
@threepointone threepointone merged commit 9857fbf into main Mar 28, 2022
@threepointone threepointone deleted the jest-environment-wrangler branch March 28, 2022 15:42
@github-actions github-actions bot mentioned this pull request Mar 28, 2022
threepointone added a commit that referenced this pull request Mar 28, 2022
threepointone added a commit that referenced this pull request Mar 28, 2022
I broke this in #715, reverting this single change.
mrbbot pushed a commit that referenced this pull request Oct 31, 2023
mrbbot pushed a commit that referenced this pull request Nov 1, 2023
mrbbot pushed a commit that referenced this pull request Nov 1, 2023
mrbbot pushed a commit that referenced this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants