mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
3e98ea4e69
Allows writing named sub-tests. These are: 1. Filterable on the command line via `cargo test ...` 2. Run in parallel 3. Use a fresh temp and deno dir for each test (unlike steps)
24 lines
514 B
Text
24 lines
514 B
Text
{
|
|
"tests": {
|
|
"run": {
|
|
"args": "run --allow-read --allow-env main.js",
|
|
"output": "main.out"
|
|
},
|
|
"test": {
|
|
"args": "test --allow-read --allow-env test.js",
|
|
"output": "test.out"
|
|
},
|
|
"eval": {
|
|
"args": [
|
|
"eval",
|
|
"import chalk from 'npm:chalk@5'; console.log(chalk.green('chalk esm loads'));"
|
|
],
|
|
"output": "main.out"
|
|
},
|
|
"bundle": {
|
|
"args": "bundle --quiet main.js",
|
|
"output": "bundle.out",
|
|
"exitCode": 1
|
|
}
|
|
}
|
|
}
|