Skip to content

Commit a6b6ac6

Browse files
committed
chore: wip
1 parent 30a4fe9 commit a6b6ac6

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/registry/registry-client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export interface BunOutdatedResult {
1414
update: string
1515
latest: string
1616
workspace?: string
17+
file?: string
1718
}
1819

1920
export class RegistryClient {

test/workspace-detection.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ describe('RegistryClient - Workspace Detection', () => {
219219

220220
it('should handle workspace scanning failures gracefully', async () => {
221221
spyOn(registryClient as any, 'getWorkspaceNames').mockResolvedValue(['@stacksjs/ai', '@stacksjs/cloud'])
222+
223+
// Mock findPackageJsonFiles to return empty for the direct scanning part
224+
spyOn(registryClient as any, 'findPackageJsonFiles').mockResolvedValue([])
222225

223226
spyOn(registryClient as any, 'runBunOutdatedForWorkspace')
224227
.mockResolvedValueOnce([{ name: 'package1', current: '1.0.0', update: '1.1.0', latest: '1.1.0', workspace: '@stacksjs/ai' }])

test/workspace-integration.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ describe('RegistryClient - Workspace Integration', () => {
327327

328328
it('should handle mixed success and failure across workspaces', async () => {
329329
spyOn(registryClient as any, 'getWorkspaceNames').mockResolvedValue(['@stacksjs/working', '@stacksjs/broken', '@stacksjs/empty'])
330+
331+
// Mock findPackageJsonFiles to return empty for the direct scanning part
332+
spyOn(registryClient as any, 'findPackageJsonFiles').mockResolvedValue([])
330333

331334
const runWorkspaceSpy = spyOn(registryClient as any, 'runBunOutdatedForWorkspace')
332335

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"noFallthroughCasesInSwitch": true,
1313
"declaration": true,
1414
"noEmit": true,
15+
"rootDir": "./",
1516
"outDir": "./dist",
1617
"esModuleInterop": true,
1718
"forceConsistentCasingInFileNames": true,

0 commit comments

Comments
 (0)