Skip to content

Nitro tests do not run in folder with special characters (e.g. space) #448

@TheAlexLichter

Description

@TheAlexLichter

Environment

WSL (Ubuntu 20.4) (also tested on classic windows)
Nitro repo from commit d1d1015

Reproduction

  1. Create a folder temp space
  2. cd into it
  3. Clone the nitro repo
  4. pnpm i
  5. pnpm t

Describe the bug

The tests fail to run because the server entrypoint (index.mjs) can't be found. Likely due to https://github.com/unjs/nitro/blob/main/src/prerender.ts#L33 + using e.g. spaces

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions