Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Mar 5, 2022
1 parent 51c1de4 commit 596651c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/test/install/local.ts
Expand Up @@ -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')
Expand All @@ -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,
Expand Down

0 comments on commit 596651c

Please sign in to comment.