MCPcopy
hub / github.com/openai/codex-plugin-cc / makeVersionFixture

Function makeVersionFixture

tests/bump-version.test.mjs:21–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21function makeVersionFixture() {
22 const root = makeTempDir();
23
24 writeJson(path.join(root, "package.json"), {
25 name: "@openai/codex-plugin-cc",
26 version: "1.0.2"
27 });
28 writeJson(path.join(root, "package-lock.json"), {
29 name: "@openai/codex-plugin-cc",
30 version: "1.0.2",
31 lockfileVersion: 3,
32 packages: {
33 "": {
34 name: "@openai/codex-plugin-cc",
35 version: "1.0.2"
36 }
37 }
38 });
39 writeJson(path.join(root, "plugins", "codex", ".claude-plugin", "plugin.json"), {
40 name: "codex",
41 version: "1.0.2"
42 });
43 writeJson(path.join(root, ".claude-plugin", "marketplace.json"), {
44 metadata: {
45 version: "1.0.2"
46 },
47 plugins: [
48 {
49 name: "codex",
50 version: "1.0.2"
51 }
52 ]
53 });
54
55 return root;
56}
57
58test("bump-version updates every release manifest", () => {
59 const root = makeVersionFixture();

Callers 1

Calls 2

makeTempDirFunction · 0.90
writeJsonFunction · 0.70

Tested by

no test coverage detected