fix(core): Improve community nodes loading (#5608)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-03-24 17:04:26 +01:00
committed by GitHub
parent 970c124260
commit 161de110ce
9 changed files with 74 additions and 138 deletions

View File

@@ -191,7 +191,7 @@ describe('POST /nodes', () => {
mocked(hasPackageLoaded).mockReturnValueOnce(false);
mocked(checkNpmPackageStatus).mockResolvedValueOnce({ status: 'OK' });
mockLoadNodesAndCredentials.loadNpmModule.mockImplementationOnce(mockedEmptyPackage);
mockLoadNodesAndCredentials.installNpmModule.mockImplementationOnce(mockedEmptyPackage);
const { statusCode } = await authOwnerShellAgent.post('/nodes').send({
name: utils.installedPackagePayload().packageName,