aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--integration/bunjs-only-snippets/dirname.test.js9
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);
+});