-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
There are missing coverage about the branch that check whether cargo is installed or not on the machine.
We essentially need to find a way to throw Deno.errors.NotFound when spawning cargo, but couldn't find a way to make it work (in Windows at least) to "remove" cargo from path, even passing the env var as empty had no effect
test("deno")("bundle() throws when cargo is not installed", async () => {
await expect(bundle(project, { autoinstall: false, loglevel: 0, env: { PATH: "" } })).not.resolves.toThrow()
}, { permissions: { read: true, run: true } })Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
No status