2024-08-08 09:22:18 -04:00
|
|
|
{
|
|
|
|
"tempDir": true,
|
|
|
|
"envs": {
|
|
|
|
"DENO_DIR": "$PWD/deno_dir"
|
|
|
|
},
|
|
|
|
"steps": [{
|
|
|
|
// create deno dir
|
|
|
|
"args": "run http://localhost:4545/echo.ts hi",
|
|
|
|
"output": "[WILDCARD]"
|
|
|
|
}, {
|
|
|
|
"args": [
|
|
|
|
"eval",
|
|
|
|
"console.log(Deno.statSync('./deno_dir') != null)"
|
|
|
|
],
|
|
|
|
"output": "true\n"
|
|
|
|
}, {
|
|
|
|
"args": "clean",
|
2024-08-14 07:04:07 -04:00
|
|
|
"output": "Removed [WILDLINE]/deno_dir ([WILDCARD]files, [WILDCARD])\n"
|
2024-08-08 09:22:18 -04:00
|
|
|
}, {
|
|
|
|
"envs": {
|
|
|
|
// use a new dir to avoid creating the old one
|
|
|
|
"DENO_DIR": "$PWD/other"
|
|
|
|
},
|
|
|
|
"args": "clean",
|
|
|
|
"output": ""
|
|
|
|
}, {
|
|
|
|
"envs": {
|
|
|
|
// use a new dir to avoid creating the old one
|
|
|
|
"DENO_DIR": "$PWD/other"
|
|
|
|
},
|
|
|
|
"args": [
|
|
|
|
"eval",
|
|
|
|
"try { Deno.statSync('./deno_dir') } catch (_) { console.log(true) }"
|
|
|
|
],
|
|
|
|
"output": "true\n"
|
|
|
|
}]
|
|
|
|
}
|