Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/spec/src/data/field.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ describe('FieldSchema', () => {

expect(() => FieldSchema.parse(selectField)).not.toThrow();
});
});
});

describe('Relationship Fields', () => {
Expand Down
28 changes: 1 addition & 27 deletions packages/spec/src/system/manifest.test.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
import { describe, it, expect } from 'vitest';
import { ManifestSchema, MenuItemSchema, type ObjectStackManifest, type MenuItem } from './manifest.zod';

describe('MenuItemSchema', () => {
it('should accept minimal menu item', () => {
const menuItem: MenuItem = {
label: 'Dashboard',
path: '/dashboard',
};

expect(() => MenuItemSchema.parse(menuItem)).not.toThrow();
});

it('should accept menu item with icon', () => {
const menuItem: MenuItem = {
label: 'Settings',
path: '/settings',
icon: 'settings',
};

expect(() => MenuItemSchema.parse(menuItem)).not.toThrow();
});

it('should reject menu item without required fields', () => {
expect(() => MenuItemSchema.parse({ label: 'Test' })).toThrow();
expect(() => MenuItemSchema.parse({ path: '/test' })).toThrow();
});
});
import { ManifestSchema, type ObjectStackManifest } from './manifest.zod';

describe('ManifestSchema', () => {
describe('Basic Properties', () => {
Expand Down
Loading