zenstack/tests/e2e/orm/client-api/auth-typing.test.ts
Yiming Cao d73c49ed93
fix(orm): typing issue when auth type is a typedef (#444)
* fix(orm): typing issue when auth type is a typedef

* update
2025-11-27 12:41:45 +08:00

18 lines
515 B
TypeScript

import { createTestClient } from '@zenstackhq/testtools';
import { describe, it } from 'vitest';
import { schema } from '../schemas/auth-type/schema';
describe('Custom auth typing tests', () => {
it('works with custom auth typing', async () => {
const db = await createTestClient(schema);
db.$setAuth({
id: 1,
role: 'ADMIN',
permissions: [
{
actionCode: 'MANAGE',
},
],
});
});
});