Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes tests
  • Loading branch information
arcanis committed Mar 31, 2022
commit 05b894df1bd42f89995f4f9f388a900ff30f836e
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ describe(`Commands`, () => {
expect(lock).toMatchObject({
[`inject-node-gyp@npm:^1.0.0`]: {
dependencies: {
[`node-gyp`]: `latest`,
[`node-gyp`]: `npm:latest`,
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-essentials/sources/suggestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export async function getSuggestedDescriptors(request: Descriptor, {project, wor
reason: formatUtils.pretty(project.configuration, `(unavailable because enableNetwork is toggled off)`, `grey`),
});
} else {
let latest = await fetchDescriptorFrom(request, `latest`, {project, cache, workspace, preserveModifier: false});
let latest = await fetchDescriptorFrom(request, `${project.configuration.get(`defaultProtocol`)}latest`, {project, cache, workspace, preserveModifier: false});

if (latest) {
latest = applyModifier(latest, modifier);
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-core/tests/Project.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe(`Project`, () => {
const zzz = project.storedPackages.get(zzzResolution)!;

const ident = structUtils.makeIdent(null, `yyy`);
const expectedDescriptor = structUtils.makeDescriptor(ident, `^1.0.0`);
const expectedDescriptor = structUtils.makeDescriptor(ident, `npm:^1.0.0`);

// This one is a sanity check
expect(xxx.dependencies.get(ident.identHash)).toEqual(expectedDescriptor);
Expand Down