augmenttoolkit / client /tests /unit /shared-contract.test.ts
Leon4gr45's picture
Upload folder using huggingface_hub (part 3)
79ed62f verified
Raw
History Blame Contribute Delete
449 Bytes
import { describe, it, expect } from 'vitest';
// Smoke test: proves the client toolchain (vite / vitest) resolves @trek/shared.
import { idParamSchema, paginationQuerySchema } from '@trek/shared';
describe('@trek/shared resolves in the client toolchain', () => {
it('imports and uses a shared schema', () => {
expect(idParamSchema.parse('7')).toBe(7);
expect(paginationQuerySchema.parse({})).toEqual({ page: 1, perPage: 50 });
});
});