mirror of
https://github.com/denoland/deno.git
synced 2025-03-12 07:07:43 -04:00

Fixes https://github.com/denoland/deno/issues/28206. Basically if you execute a script with `node:vm`, this produces a "script" with the file name `evalmachine.<anonymous>`, which ends up producing coverage like ```json { "scriptId": "319", "url": "evalmachine.<anonymous>", "functions": [ { "functionName": "", "ranges": [{ "startOffset": 0, "endOffset": 18, "count": 1 }], "isBlockCoverage": true } ] } ``` We assume that the `url` field here (the specifier of the script) is a valid URL, and so we error out when processing that coverage. There are two potential fixes: either don't write the coverage files for those scripts, or ignore the errors when we process the data. I went with the former here.
13 lines
192 B
JSON
13 lines
192 B
JSON
{
|
|
"tempDir": true,
|
|
"steps": [
|
|
{
|
|
"args": "test --coverage main_test.ts",
|
|
"output": "[WILDCARD]"
|
|
},
|
|
{
|
|
"args": "coverage",
|
|
"output": "cov.out"
|
|
}
|
|
]
|
|
}
|