mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 21:31:46 +00:00
12 lines
449 B
TypeScript
12 lines
449 B
TypeScript
// Smoke test: proves the server toolchain (tsx / vitest) resolves @trek/shared.
|
|
import { idParamSchema, paginationQuerySchema } from '@trek/shared';
|
|
|
|
import { describe, it, expect } from 'vitest';
|
|
|
|
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 });
|
|
});
|
|
});
|