(
schema: Schema | string,
options?: CreateTestClientOptions<Schema>,
)
| 336 | options?: CreateTestClientOptions<Schema>, |
| 337 | ): Promise<any>; |
| 338 | export async function createPolicyTestClient<Schema extends SchemaDef>( |
| 339 | schema: Schema | string, |
| 340 | options?: CreateTestClientOptions<Schema>, |
| 341 | ): Promise<any> { |
| 342 | return createTestClient( |
| 343 | schema as any, |
| 344 | { |
| 345 | ...options, |
| 346 | plugins: [...(options?.plugins ?? []), new PolicyPlugin()], |
| 347 | } as any, |
| 348 | ); |
| 349 | } |
| 350 | |
| 351 | export function testLogger(e: LogEvent) { |
| 352 | console.log(e.query.sql, e.query.parameters); |
no test coverage detected