feat: add tags workflow
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { parseProjectConfig } from "./parseProjectConfig";
|
||||
import { serializeProjectConfig } from "./serializeProjectConfig";
|
||||
|
||||
describe("serializeProjectConfig", () => {
|
||||
it("round-trips tags", () => {
|
||||
const yaml = serializeProjectConfig({ tags: ["bug", "docs"] });
|
||||
expect(yaml).toContain("bug");
|
||||
expect(yaml).toContain("docs");
|
||||
const parsed = parseProjectConfig(yaml);
|
||||
expect(parsed._unsafeUnwrap().tags).toEqual(["bug", "docs"]);
|
||||
});
|
||||
|
||||
it("serializes empty tags", () => {
|
||||
const yaml = serializeProjectConfig({ tags: [] });
|
||||
const parsed = parseProjectConfig(yaml);
|
||||
expect(parsed._unsafeUnwrap().tags).toEqual([]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user