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

🐛 BUG: Vitest integration cannot handle file paths with space in the name #8064

Open
volkanunsal opened this issue Feb 8, 2025 · 0 comments
Labels
bug Something that isn't working

Comments

@volkanunsal
Copy link

Which Cloudflare product(s) does this pertain to?

Workers Vitest Integration

What versions are you using?

3.107.3

What operating system and version are you using?

Mac Sequoia 15.3

Please provide a link to a minimal reproduction

No response

Describe the Bug

My app path has a space in it, which is causing the following error when I run the tests.

workerd/server/server.c++:3319: error: Fallback service failed to fetch module; payload = ; spec =

To reproduce:

  1. Create a path with a space in its name, e.g. ~/x/foo bar/home
  2. cd to ~/x/foo bar/home
  3. Generate a hello world app: pnpm create cloudflare@latest hello-world -- --type=hello-world\n
  4. Integrate with vitest: pnpm install --save-dev @cloudflare/vitest-pool-workers [email protected]
  5. Add tests
  6. Run test

Now try moving the project to ~/x/foobar/home and try again. It should work fine without any errors.

Please provide any relevant error logs

No response

@volkanunsal volkanunsal added the bug Something that isn't working label Feb 8, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant