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
Workers Vitest Integration
[email protected], @cloudflare/[email protected]
22.9.0
Mac Sonoma 14.6.1
Tests fail when using runInDurableObject() when package.json contains a namespace in the name field (e.g. @repo/worker-a instead of worker-a.)
runInDurableObject()
package.json
name
@repo/worker-a
worker-a
Note: adding a namespace like @repo/ to packages is useful in monorepos for tools like syncpack where I want to treat all @repo/ packages as local.
@repo/
syncpack
Tests pass
git clone https://github.com/jahands/cf-vitest-pkg-name-error.git cd cf-vitest-pkg-name-error pnpm install pnpm test
https://github.com/jahands/cf-vitest-pkg-name-error
See repo README
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Which Cloudflare product(s) does this pertain to?
Workers Vitest Integration
What version(s) of the tool(s) are you using?
[email protected], @cloudflare/[email protected]
What version of Node are you using?
22.9.0
What operating system and version are you using?
Mac Sonoma 14.6.1
Describe the Bug
Observed behavior
Tests fail when using
runInDurableObject()
whenpackage.json
contains a namespace in thename
field (e.g.@repo/worker-a
instead ofworker-a
.)Note: adding a namespace like
@repo/
to packages is useful in monorepos for tools likesyncpack
where I want to treat all@repo/
packages as local.Expected behavior
Tests pass
Steps to reproduce
Please provide a link to a minimal reproduction
https://github.com/jahands/cf-vitest-pkg-name-error
Please provide any relevant error logs
See repo README
The text was updated successfully, but these errors were encountered: