streamline package naming

This commit is contained in:
Benjamin Diedrichsen
2026-07-29 13:07:34 +02:00
parent 1ba1c2a32a
commit 7e703c93b1
100 changed files with 141 additions and 139 deletions
@@ -0,0 +1,39 @@
/**
* Tests for the manifest factories
*/
import { describe, expect, it } from 'vitest';
import { z } from 'zod';
import { createManifest, manifest } from '../src/factories.js';
describe('createManifest', () => {
it('creates manifest with basic properties', () => {
const m = createManifest({
id: 'test-cube',
name: 'Test Cube',
});
expect(m.id).toBe('test-cube');
expect(m.name).toBe('Test Cube');
expect(m.schema).toBeDefined();
expect(m.before).toEqual([]);
expect(m.after).toEqual([]);
});
it('accepts schema', () => {
const schema = z.object({
VERSION: z.string().default('1.0'),
});
const m = createManifest({
name: 'Test Cube',
schema,
});
expect(m.schema).toBe(schema);
});
it('manifest is alias for createManifest', () => {
expect(manifest).toBe(createManifest);
});
});