imccyu 2 недель назад
Родитель
Сommit
e68f5d5aba
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      apps/cli/tests/resolved-profile-boot.spec.ts

+ 4 - 1
apps/cli/tests/resolved-profile-boot.spec.ts

@@ -154,8 +154,11 @@ describe('runProfile with an application-owned profile', () => {
       } else {
         expect(healIsolatedProfileModuleFallback).not.toHaveBeenCalled()
       }
+      const generation = vi.mocked(createProfileResolutionGeneration).mock.settledResults
+        .find(result => result.type === 'fulfilled')?.value
+      expect(generation?.profileDir).toBe(home)
       expect(plugin).toHaveBeenCalledWith(PluginPackages, mode === 'link' ? {} : {
-        generation: expect.objectContaining({ profileDir: home }),
+        generation,
         behavior: mode === 'dual' ? 'verify' : 'enforce',
       })
       expect(existsSync(join(home, 'profiles/node_modules'))).toBe(false)