We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error when trying to use wrangler, e.g. to run a test for a cloudflare worker.
[bun] Warning: worker_threads.Worker option "execArgv" is not implemented.
import {expect, test} from 'bun:test' import {unstable_dev} from 'wrangler' import {join} from 'path' const root = join(__dirname, '../../..') test('durable-objects', async () => { const handler = await unstable_dev(join(root, 'src/index.ts'), { config: join(root, 'wrangler.toml'), experimental: { disableExperimentalWarning: true, disableDevRegistry: true }, bundle: false, compatibilityDate: '2023-10-10', local: true, logLevel: 'debug', }); const res =await handler.fetch('http://worker.dev', {}); const json = await res.json(); expect(json).toEqual({hello: 'world'}); });
Add support for execArgv and thus for wrangler.
Use vitest/jest.
The text was updated successfully, but these errors were encountered:
Here is the execArgv support issue: #4130
Sorry, something went wrong.
Duplicate of #4130
Still not working yet unfortunately, waiting for #8867 to work for unstable_dev, for anyone stumbling upon this
As well as #4165
No branches or pull requests
What is the problem this feature would solve?
Error when trying to use wrangler, e.g. to run a test for a cloudflare worker.
Message
[bun] Warning: worker_threads.Worker option "execArgv" is not implemented.
Code example
What is the feature you are proposing to solve the problem?
Add support for execArgv and thus for wrangler.
What alternatives have you considered?
Use vitest/jest.
The text was updated successfully, but these errors were encountered: