@getmikk/diagram-generator 2.0.12 → 2.0.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getmikk/diagram-generator",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -54,4 +54,22 @@ describe('MainDiagramGenerator', () => {
54
54
  expect(diagram).toContain('auth["📦 Auth')
55
55
  expect(diagram).toContain('db["📦 Database')
56
56
  })
57
+
58
+ it('always emits a non-empty diagram string', () => {
59
+ const contract: MikkContract = {
60
+ project: { name: 'x', language: 'typescript', framework: null },
61
+ declared: { modules: [], constraints: [], decisions: [] },
62
+ overwrite: { mode: 'never', requireConfirmation: false },
63
+ }
64
+ const lock: MikkLock = {
65
+ version: '1',
66
+ lastUpdated: new Date().toISOString(),
67
+ files: {},
68
+ functions: {},
69
+ classes: {},
70
+ modules: {},
71
+ }
72
+ const diagram = new MainDiagramGenerator(contract, lock).generate()
73
+ expect(diagram.trim().length).toBeGreaterThan(0)
74
+ })
57
75
  })
@@ -3,3 +3,7 @@ import { expect, test } from "bun:test";
3
3
  test("smoke test - diagram-generator", () => {
4
4
  expect(true).toBe(true);
5
5
  });
6
+
7
+ test("diagram-generator test runtime is Bun", () => {
8
+ expect(typeof process.versions.bun).toBe("string");
9
+ });