@intentius/chant-lexicon-gcp 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "43cabf3e120cca8df561efc7f9e531446951483570bf9b0ee41d5c5ae4a23d74",
4
+ "manifest.json": "29dc0f580e4943555c65b7b362f55fbc79f194f4209d111e6d2d3ff88a067b94",
5
5
  "meta.json": "475f10909854d059a2e2d4fb541c058803422e38b9c64bd4d6858c0623eedb8c",
6
6
  "types/index.d.ts": "5433b54c04b57d6fda8f3d81ef92ed0aca87f7e8e5dd3ea92d8de6e62a3ccfab",
7
7
  "rules/hardcoded-project.ts": "228631d3159e1ffcce2359c66073d4ae59bb0285f378e46e446f416aec50481c",
@@ -37,5 +37,5 @@
37
37
  "skills/chant-gcp-patterns.md": "a7ef31c1eb2f7244d3f73952c300472ef94c1eb09bd7a1003281b89299b6b704",
38
38
  "skills/chant-gcp-gke.md": "be277019da9a722c851e47cd2dfb9c9536668948c3535fb20db7697e934c4e2b"
39
39
  },
40
- "composite": "e0ff848e425b011a01b772886e6dc37347d4894fa3e529a642a13f59222d53ac"
40
+ "composite": "84cb40fa631e5475b7199c121af3eceebaddb0ed444423041a383602994330e0"
41
41
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcp",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "GCP",
6
6
  "intrinsics": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-gcp",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Google Cloud lexicon for chant — declarative IaC in TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -76,7 +76,7 @@
76
76
  "typescript": "^5.9.3"
77
77
  },
78
78
  "peerDependencies": {
79
- "@intentius/chant": "^0.19.0",
79
+ "@intentius/chant": "^0.20.0",
80
80
  "typescript": "^5.9.3"
81
81
  }
82
82
  }
@@ -6,11 +6,11 @@ describe("generateDocs", () => {
6
6
  expect(typeof generateDocs).toBe("function");
7
7
  });
8
8
 
9
- test("generateDocs returns a promise", () => {
10
- const result = generateDocs({ verbose: false });
11
- expect(result).toBeDefined();
12
- expect(typeof result.then).toBe("function");
13
- // Suppress unhandled rejection if it fails due to missing data
14
- result.catch(() => {});
9
+ // Asserted from the declaration rather than by calling it: generateDocs
10
+ // writes the real docs tree under lexicons/gcp/docs, so invoking it here
11
+ // rewrote tracked .mdx files (index.mdx's "Lexicon version") on every
12
+ // `vitest run` — and did it in a floating promise, off the test's timeline.
13
+ test("generateDocs is async, so it returns a promise", () => {
14
+ expect(generateDocs.constructor.name).toBe("AsyncFunction");
15
15
  });
16
16
  });