Skip to content

Commit 7d05018

Browse files
committed
chore(scripts): drop the script unit tests and the exports that served them
1 parent 789e313 commit 7d05018

5 files changed

Lines changed: 3 additions & 240 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"check:cron-parity": "bun run scripts/check-cron-parity.ts",
3232
"check:api-validation:strict": "bun run scripts/check-api-validation-contracts.ts --check --enforce-boundary-baseline",
3333
"check:realtime-prune": "bun run scripts/check-realtime-prune-graph.ts",
34-
"check:tool-request-boundary": "bun test scripts/check-tool-request-boundary.test.ts && bun run scripts/check-tool-request-boundary.ts",
34+
"check:tool-request-boundary": "bun run scripts/check-tool-request-boundary.ts",
3535
"check:tool-registry-boundary": "bun run scripts/check-tool-registry-boundary.ts",
3636
"check:sql-date-binding": "bun run scripts/check-sql-date-binding.ts",
3737
"check:zustand-v5": "bun run scripts/check-zustand-v5-selectors.ts",

scripts/check-migrations-safety.test.ts

Lines changed: 0 additions & 200 deletions
This file was deleted.

scripts/check-migrations-safety.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ const ANNOTATE_GUIDANCE =
330330
'is a contract-phase op. Confirm the old code no longer reads/writes it (it must have shipped in an earlier deploy — not this same PR), then acknowledge with a `-- migration-safe: <reason>` comment on the line above.'
331331

332332
/** Lint a single migration's SQL. Returns only actionable findings. */
333-
export function lintSql(content: string): Finding[] {
333+
function lintSql(content: string): Finding[] {
334334
const lines = content.split('\n')
335335
const statements = parseStatements(content)
336336
const createdTables = new Set<string>()

scripts/check-tool-request-boundary.test.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

scripts/check-tool-request-boundary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function isLikelyToolIdentifier(expression: SyntaxNode): boolean {
148148
)
149149
}
150150

151-
export function findToolRequestBoundaryViolations(source: string, file = 'source.ts'): Violation[] {
151+
function findToolRequestBoundaryViolations(source: string, file = 'source.ts'): Violation[] {
152152
const extension = extname(file)
153153
const syntaxTree = parse(source, {
154154
sourceFilename: file,

0 commit comments

Comments
 (0)