diff options
Diffstat (limited to 'test/cli/run/env.test.ts')
-rw-r--r-- | test/cli/run/env.test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/cli/run/env.test.ts b/test/cli/run/env.test.ts index 8ae824607..6e4d83d44 100644 --- a/test/cli/run/env.test.ts +++ b/test/cli/run/env.test.ts @@ -230,6 +230,14 @@ test(".env comments", () => { expect(stdout).toBe("foo bar"); }); +test(".env process variables no comments", () => { + const dir = tempDirWithFiles("env-no-comments", { + "index.ts": "console.log(process.env.TEST1, process.env.TEST2);", + }); + const { stdout } = bunRun(`${dir}/index.ts`, { TEST1: "test#1", TEST2: '"test#2"' }); + expect(stdout).toBe('test#1 "test#2"'); +}); + test(".env escaped dollar sign", () => { const dir = tempDirWithFiles("dotenv-dollar", { ".env": "FOO=foo\nBAR=\\$FOO", |