11 lines
448 B
TypeScript
11 lines
448 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|||
// Smoke test: proves the server toolchain (tsx / vitest) resolves @trek/shared.
|
|||
import { idParamSchema, paginationQuerySchema } from '@trek/shared';
|
|||
|
|||
describe('@trek/shared resolves in the server toolchain', () => {
|
|||
it('imports and uses a shared schema', () => {
|
|||
expect(idParamSchema.parse('7')).toBe(7);
|
|||
expect(paginationQuerySchema.parse({})).toEqual({ page: 1, perPage: 50 });
|
|||
});
|
|||
});
|