Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Jun 30, 2023
1 parent 751c87d commit 5bff45c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg-manager/core/test/install/fromRepo.ts
@@ -1,5 +1,4 @@
import path from 'path'
import fs from 'fs'
import { type RootLog } from '@pnpm/core-loggers'
import { prepareEmpty } from '@pnpm/prepare'
import {
Expand Down Expand Up @@ -174,10 +173,8 @@ test('from a github repo the has no package.json file', async () => {
expect(manifest.dependencies).toStrictEqual({
'for-testing.no-package-json': 'github:pnpm/for-testing.no-package-json',
})
fs.rmSync(path.join(project.dir(), 'node_modules'), {
recursive: true, force: true,
})
fs.rmSync(path.join(project.dir(), 'pnpm-lock.yaml'))
await rimraf(path.join(project.dir(), 'node_modules'))
await rimraf(path.join(project.dir(), 'pnpm-lock.yaml'))
// if there is an unresolved promise, this test will hang until timeout.
// e.g. thrown: "Exceeded timeout of 240000 ms for a test.
await addDependenciesToPackage({}, ['pnpm/for-testing.no-package-json'], await testDefaults())
Expand Down

0 comments on commit 5bff45c

Please sign in to comment.