Prechádzať zdrojové kódy

test(client-modules): type loader resolver stubs

imccyu 1 mesiac pred
rodič
commit
b46953f3cc

+ 2 - 2
packages/client/modules/tests/node-half.client.spec.ts

@@ -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)