release: WRNexusJS 0.3.0

This commit is contained in:
2026-07-22 17:29:08 +05:30
parent 13dfa31d19
commit 07d8fb59d6
145 changed files with 9664 additions and 3881 deletions
+20
View File
@@ -0,0 +1,20 @@
import { describe, expect, test } from "bun:test";
import { resolvePlugins } from "../src/index.ts";
describe("plugin ordering", () => {
test("orders pre, normal, and post plugins", () => {
expect(
resolvePlugins([
{ name: "post", enforce: "post" },
{ name: "normal" },
{ name: "pre", enforce: "pre" },
]).map((plugin) => plugin.name),
).toEqual(["pre", "normal", "post"]);
});
test("respects explicit dependencies", () => {
expect(
resolvePlugins([{ name: "b", after: ["a"] }, { name: "a" }]).map((plugin) => plugin.name),
).toEqual(["a", "b"]);
});
});