diff --git a/packages/core/test/install/local.ts b/packages/core/test/install/local.ts index 37806ad96e5..c246932093e 100644 --- a/packages/core/test/install/local.ts +++ b/packages/core/test/install/local.ts @@ -29,9 +29,9 @@ test('local file', async () => { const project = prepareEmpty() f.copy('local-pkg', path.resolve('..', 'local-pkg')) - const manifest = await addDependenciesToPackage({}, ['file:../local-pkg'], await testDefaults()) + const manifest = await addDependenciesToPackage({}, ['link:../local-pkg'], await testDefaults()) - const expectedSpecs = { 'local-pkg': `file:..${path.sep}local-pkg` } + const expectedSpecs = { 'local-pkg': `link:..${path.sep}local-pkg` } expect(manifest.dependencies).toStrictEqual(expectedSpecs) const m = project.requireModule('local-pkg') @@ -42,7 +42,7 @@ test('local file', async () => { expect(lockfile).toStrictEqual({ dependencies: { - 'local-pkg': 'file:../local-pkg', + 'local-pkg': 'link:../local-pkg', }, lockfileVersion: LOCKFILE_VERSION, specifiers: expectedSpecs,