diff options
author | 2022-05-09 21:54:08 -0700 | |
---|---|---|
committer | 2022-05-09 21:54:08 -0700 | |
commit | f4188b3ddcacc4cb5845aba320d29b07a42a19c2 (patch) | |
tree | 2e1ba62270e067a79e1520a6d437a6e38c1cd4b9 /integration/bunjs-only-snippets | |
parent | 963c08d472dc1d76e9d665c1b1b511a38b94033a (diff) | |
download | bun-f4188b3ddcacc4cb5845aba320d29b07a42a19c2.tar.gz bun-f4188b3ddcacc4cb5845aba320d29b07a42a19c2.tar.zst bun-f4188b3ddcacc4cb5845aba320d29b07a42a19c2.zip |
Add test for __dirname
Diffstat (limited to 'integration/bunjs-only-snippets')
-rw-r--r-- | integration/bunjs-only-snippets/dirname.test.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/integration/bunjs-only-snippets/dirname.test.js b/integration/bunjs-only-snippets/dirname.test.js new file mode 100644 index 000000000..98292dc49 --- /dev/null +++ b/integration/bunjs-only-snippets/dirname.test.js @@ -0,0 +1,9 @@ +import { expect, it } from "bun:test"; + +it("__dirname should work", () => { + expect(import.meta.dir).toBe(__dirname); +}); + +it("__filename should work", () => { + expect(import.meta.path).toBe(__filename); +}); |