Skip to content

Commit 20a5c41

Browse files
committed
test(runtime): the option-B door test's refresh list is typed, so the test layer compiles under tsconfig.test.json
Claude-Session: https://claude.ai/code/session_01ADzJtzYTLUfgrRZHxkagkX Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6a01653 commit 20a5c41

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/runtime/src/standalone-stack-option-b-forward-conversion.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ describe('[#23027] the runtime\'s artifact load converts every package body once
223223
datasources: [{ name: 'ob_db', label: 'OB DB', driver: 'sqlite', config: { filename: './ob.db' } }],
224224
datasourceMapping: [{ default: true, datasource: 'ob_db' }],
225225
};
226-
for (const refresh of [{ refreshInterval: 300 }, { refreshIntervalSeconds: 300 }]) {
226+
const refreshes: Record<string, number>[] = [{ refreshInterval: 300 }, { refreshIntervalSeconds: 300 }];
227+
for (const refresh of refreshes) {
227228
const { dir, artifactPath } = writeArtifact('db', optionB('^18', { ...declared, dashboards: [dashboard('ob_overview', refresh)] }));
228229
const resolved = resolveProjectDatabaseUrl({ artifactPath, projectRoot: dir, env: {} });
229230
expect([resolved.source, resolved.url, resolved.datasourceName], JSON.stringify(refresh))

0 commit comments

Comments
 (0)