mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
test(client-modules): type loader resolver stubs
This commit is contained in:
@@ -351,7 +351,7 @@ describe('client bundle activation', () => {
|
||||
}
|
||||
|
||||
expect(() => constructWithRoute([packageName, alias], {
|
||||
internal: internal as NonNullable<Context['loader']['internal']>,
|
||||
internal: internal as unknown as NonNullable<Context['loader']['internal']>,
|
||||
})).toThrow(
|
||||
`client-modules: package ${packageName} resolves from multiple active Loader sources:`,
|
||||
)
|
||||
@@ -371,7 +371,7 @@ describe('client bundle activation', () => {
|
||||
resolveSync: () => ({ format: 'module' as const, url: pathToFileURL(hostPath).href }),
|
||||
}
|
||||
const { context, service } = constructWithRoute(entries, {
|
||||
internal: internal as NonNullable<Context['loader']['internal']>,
|
||||
internal: internal as unknown as NonNullable<Context['loader']['internal']>,
|
||||
})
|
||||
const firstRevision = service.graph().entries[0]!.rev
|
||||
const warning = vi.spyOn(context.logger, 'warn').mockImplementation(() => undefined)
|
||||
|
||||
Reference in New Issue
Block a user