aboutsummaryrefslogtreecommitdiff
path: root/test/js
diff options
context:
space:
mode:
Diffstat (limited to 'test/js')
-rw-r--r--test/js/node/path/path.test.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/js/node/path/path.test.js b/test/js/node/path/path.test.js
index 8f5a76da7..03037c2e9 100644
--- a/test/js/node/path/path.test.js
+++ b/test/js/node/path/path.test.js
@@ -1,6 +1,6 @@
const { file } = import.meta;
-import { describe, it, expect } from "bun:test";
+import { describe, it, expect, test } from "bun:test";
import path from "node:path";
import assert from "assert";
import { hideFromStackTrace } from "harness";
@@ -586,3 +586,7 @@ it("path.parse", () => {
name: "another_dir",
});
});
+
+test("path.format works for vite's example", () => {
+ expect(path.format({ root: "", dir: "", name: "index", base: undefined, ext: ".css" })).toBe("index.css");
+});