Skip to content

Commit 9a3c289

Browse files
committed
test(rest): meta-types schema-titles pays the objectql load at collection
check:test-source-alias judges edited test files; this one reaches a lazy objectql import through RestServer, so it takes the module-top side-effect import the convention asks for. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CahVE6H18HGhfsxm57
1 parent 84b361c commit 9a3c289

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/rest/src/meta-types-schema-titles.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
import { describe, it, expect, vi } from 'vitest';
2020
import { RestServer } from './rest-server.js';
21+
// Paid at collection, not inside a clocked case: the routes reached through
22+
// RestServer load it lazily (check:test-source-alias).
23+
import '@objectstack/objectql';
2124

2225
/** The served shape `getMetaTypes()` derives for a `dashboard` entry, trimmed to the header. */
2326
const DASHBOARD_SCHEMA = () => ({

0 commit comments

Comments
 (0)