release: prepare WRNexusJS 0.8.8
This commit is contained in:
@@ -169,6 +169,30 @@ test("update verification skips unavailable scripts", () => {
|
||||
expect(verificationCommands({ check: "bun run lint" })).toEqual([["run", "check"]]);
|
||||
});
|
||||
|
||||
test("0.6 type declarations are created only inside runnable apps", () => {
|
||||
const workspaceRoot = mkdtempSync(join(tmpdir(), "wrnexus-update-workspace-"));
|
||||
const appRoot = join(workspaceRoot, "apps", "web");
|
||||
mkdirSync(join(appRoot, "app", "pages"), { recursive: true });
|
||||
writeFileSync(
|
||||
join(workspaceRoot, "package.json"),
|
||||
JSON.stringify({ name: "workspace", wrnexus: { version: "0.5.9" } }),
|
||||
);
|
||||
writeFileSync(
|
||||
join(appRoot, "package.json"),
|
||||
JSON.stringify({ name: "web", wrnexus: { version: "0.5.9" } }),
|
||||
);
|
||||
|
||||
try {
|
||||
updateApp(workspaceRoot, "0.6.0", false);
|
||||
updateApp(appRoot, "0.6.0", false);
|
||||
|
||||
expect(existsSync(join(workspaceRoot, "app", "types", "global.d.ts"))).toBe(false);
|
||||
expect(existsSync(join(appRoot, "app", "types", "global.d.ts"))).toBe(true);
|
||||
} finally {
|
||||
rmSync(workspaceRoot, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
test("0.3 WRN source normalization is conservative and idempotent", async () => {
|
||||
const { migrateWrnSource } = await import("../src/update.ts");
|
||||
const source = `component Card {
|
||||
|
||||
Reference in New Issue
Block a user