Last active
September 11, 2022 01:53
-
-
Save iugo/66cf24ad826734d611e4b348f4308adf to your computer and use it in GitHub Desktop.
deno 1.25.1 NotFound: No such file or directory (os error 2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { test } from './test-main.ts'; | |
Deno.test('test', async () => { | |
await test(); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// deno run -A test-main.ts | |
export async function test() { | |
const p = Deno.run({cmd: ['deno', 'run', '-A', 'test-mod.ts'], env: { ABC: '123' }}) | |
await p.status() | |
p.close() | |
} | |
await test() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const v = Deno.env.get('ABC'); | |
console.log(v); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment