Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 472b377

Browse files
committed
chore(cli): remove debug artifacts and silence test logs
Removes hardcoded file system path debugging and unnecessary console logging from the introspector and test suites. Silences CLI command output during tests to provide a cleaner test execution environment.
1 parent 371552d commit 472b377

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

packages/cli/src/actions/pull/provider/sqlite.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { DataFieldAttributeFactory } from '@zenstackhq/language/factory';
22
import { getAttributeRef, getDbName, getFunctionRef } from '../utils';
33
import type { IntrospectedEnum, IntrospectedSchema, IntrospectedTable, IntrospectionProvider } from './provider';
4-
import { writeFileSync } from 'node:fs';
54

65
// Note: We dynamically import better-sqlite3 inside the async function to avoid
76
// requiring it at module load time for environments that don't use SQLite.
@@ -233,11 +232,6 @@ export const sqlite: IntrospectionProvider = {
233232
}
234233

235234
const enums: IntrospectedEnum[] = []; // SQLite doesn't support enums
236-
237-
writeFileSync(
238-
'D:/Projects/GitHub/zenstack-v3/packages/cli/sqlite-introspected.json',
239-
JSON.stringify({ tables, enums }, null, 4),
240-
);
241235

242236
return { tables, enums };
243237
} finally {

packages/cli/test/db/pull.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ model User {
167167
@@index([role])
168168
}`,
169169
);
170-
console.log(workDir)
171170
runCli('format', workDir);
172171
runCli('db push', workDir);
173172
const schemaFile = path.join(workDir, 'zenstack/schema.zmodel');

packages/cli/test/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ export function createProject(
8181

8282
export function runCli(command: string, cwd: string) {
8383
const cli = path.join(__dirname, '../dist/index.js');
84-
execSync(`node ${cli} ${command}`, { cwd, stdio: 'inherit' });
84+
execSync(`node ${cli} ${command}`, { cwd });
8585
}

0 commit comments

Comments
 (0)