test(client-modules): type loader resolver stubs
This commit is contained in:
parent
827acd07b1
commit
b46953f3cc
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue