From a47106fa0ef4639d37bd9816e40c6e7eb45b59f9 Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Sat, 14 Sep 2024 19:50:02 +0200 Subject: [PATCH] chore: remove pnpm6 tests --- .github/workflows/e2e-ci.yml | 2 +- e2e/cli/e2e-pnpm6/.babelrc | 3 - e2e/cli/e2e-pnpm6/.eslintrc | 7 -- e2e/cli/e2e-pnpm6/CHANGELOG.md | 39 ---------- e2e/cli/e2e-pnpm6/audit.spec.ts | 45 ----------- e2e/cli/e2e-pnpm6/deprecate.spec.ts | 115 ---------------------------- e2e/cli/e2e-pnpm6/dist-tags.spec.ts | 91 ---------------------- e2e/cli/e2e-pnpm6/info.spec.ts | 31 -------- e2e/cli/e2e-pnpm6/install.spec.ts | 36 --------- e2e/cli/e2e-pnpm6/jest.config.js | 3 - e2e/cli/e2e-pnpm6/package.json | 12 --- e2e/cli/e2e-pnpm6/ping.spec.ts | 24 ------ e2e/cli/e2e-pnpm6/publish.spec.ts | 41 ---------- e2e/cli/e2e-pnpm6/search.spec.ts | 33 -------- e2e/cli/e2e-pnpm6/star.spec.ts | 89 --------------------- e2e/cli/e2e-pnpm6/tsconfig.json | 8 -- e2e/cli/e2e-pnpm6/utils.ts | 14 ---- 17 files changed, 1 insertion(+), 592 deletions(-) delete mode 100644 e2e/cli/e2e-pnpm6/.babelrc delete mode 100644 e2e/cli/e2e-pnpm6/.eslintrc delete mode 100644 e2e/cli/e2e-pnpm6/CHANGELOG.md delete mode 100644 e2e/cli/e2e-pnpm6/audit.spec.ts delete mode 100644 e2e/cli/e2e-pnpm6/deprecate.spec.ts delete mode 100644 e2e/cli/e2e-pnpm6/dist-tags.spec.ts delete mode 100644 e2e/cli/e2e-pnpm6/info.spec.ts delete mode 100644 e2e/cli/e2e-pnpm6/install.spec.ts delete mode 100644 e2e/cli/e2e-pnpm6/jest.config.js delete mode 100644 e2e/cli/e2e-pnpm6/package.json delete mode 100644 e2e/cli/e2e-pnpm6/ping.spec.ts delete mode 100644 e2e/cli/e2e-pnpm6/publish.spec.ts delete mode 100644 e2e/cli/e2e-pnpm6/search.spec.ts delete mode 100644 e2e/cli/e2e-pnpm6/star.spec.ts delete mode 100644 e2e/cli/e2e-pnpm6/tsconfig.json delete mode 100644 e2e/cli/e2e-pnpm6/utils.ts diff --git a/.github/workflows/e2e-ci.yml b/.github/workflows/e2e-ci.yml index 9c53c7e..9d99bfe 100644 --- a/.github/workflows/e2e-ci.yml +++ b/.github/workflows/e2e-ci.yml @@ -54,7 +54,7 @@ jobs: strategy: fail-fast: false matrix: - pkg: [npm6, npm7, npm8, npm9, npm10, pnpm6, pnpm7, pnpm8, yarn1, yarn2, yarn3] + pkg: [npm6, npm7, npm8, npm9, npm10, pnpm7, pnpm8, yarn1, yarn2, yarn3] node: [22] name: ${{ matrix.pkg }}/ ubuntu-20.04 / ${{ matrix.node }} runs-on: ubuntu-20.04 diff --git a/e2e/cli/e2e-pnpm6/.babelrc b/e2e/cli/e2e-pnpm6/.babelrc deleted file mode 100644 index 851856e..0000000 --- a/e2e/cli/e2e-pnpm6/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../../.babelrc" -} diff --git a/e2e/cli/e2e-pnpm6/.eslintrc b/e2e/cli/e2e-pnpm6/.eslintrc deleted file mode 100644 index eb2ac4c..0000000 --- a/e2e/cli/e2e-pnpm6/.eslintrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "rules": { - "no-console": 0, - "@typescript-eslint/no-var-requires": 0, - "@typescript-eslint/explicit-member-accessibility": 0 - } -} diff --git a/e2e/cli/e2e-pnpm6/CHANGELOG.md b/e2e/cli/e2e-pnpm6/CHANGELOG.md deleted file mode 100644 index 268a2d0..0000000 --- a/e2e/cli/e2e-pnpm6/CHANGELOG.md +++ /dev/null @@ -1,39 +0,0 @@ -# @verdaccio/e2e-cli-pnpm6 - -## 1.0.1-6-next.5 - -### Patch Changes - -- @verdaccio/test-cli-commons@1.0.1-6-next.5 - -## 1.0.1-6-next.4 - -### Patch Changes - -- @verdaccio/test-cli-commons@1.0.1-6-next.4 - -## 1.0.1-6-next.3 - -### Patch Changes - -- 351aeeaa: fix(deps): @verdaccio/utils should be a prod dep of local-storage -- Updated dependencies [351aeeaa] - - @verdaccio/test-cli-commons@1.0.1-6-next.3 - -## 1.0.1-6-next.2 - -### Patch Changes - -- @verdaccio/test-cli-commons@1.0.1-6-next.2 - -## 1.0.1-6-next.1 - -### Patch Changes - -- @verdaccio/test-cli-commons@1.0.1-6-next.1 - -## 1.0.1-6-next.0 - -### Patch Changes - -- @verdaccio/test-cli-commons@1.0.1-6-next.0 diff --git a/e2e/cli/e2e-pnpm6/audit.spec.ts b/e2e/cli/e2e-pnpm6/audit.spec.ts deleted file mode 100644 index bacb77e..0000000 --- a/e2e/cli/e2e-pnpm6/audit.spec.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons'; - -import { pnpm } from './utils'; - -describe('audit a package', () => { - jest.setTimeout(10000); - let registry; - - beforeAll(async () => { - const setup = await initialSetup(); - registry = setup.registry; - await registry.init(); - }); - - test.each([['verdaccio-memory', '@verdaccio/cli']])( - 'should audit a package %s', - async (pkgName) => { - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0-patch', - registry.port, - registry.getToken(), - registry.getRegistryUrl(), - { jquery: '3.6.1' } - ); - // install is required to create package lock file - await pnpm({ cwd: tempFolder }, 'install', ...addRegistry(registry.getRegistryUrl())); - const resp = await pnpm( - { cwd: tempFolder }, - 'audit', - '--json', - ...addRegistry(registry.getRegistryUrl()) - ); - const parsedBody = JSON.parse(resp.stdout as string); - expect(parsedBody.metadata).toBeDefined(); - expect(parsedBody.actions).toBeDefined(); - expect(parsedBody.advisories).toBeDefined(); - expect(parsedBody.muted).toBeDefined(); - } - ); - - afterAll(async () => { - registry.stop(); - }); -}); diff --git a/e2e/cli/e2e-pnpm6/deprecate.spec.ts b/e2e/cli/e2e-pnpm6/deprecate.spec.ts deleted file mode 100644 index 2e7ae0a..0000000 --- a/e2e/cli/e2e-pnpm6/deprecate.spec.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { - addRegistry, - initialSetup, - pnpmUtils, - prepareGenericEmptyProject, -} from '@verdaccio/test-cli-commons'; - -import { pnpm } from './utils'; - -describe('deprecate a package', () => { - jest.setTimeout(20000); - let registry; - - async function deprecate(tempFolder, packageVersion, registry, message) { - await pnpm( - { cwd: tempFolder }, - 'deprecate', - packageVersion, - message, - '--json', - ...addRegistry(registry.getRegistryUrl()) - ); - } - - beforeAll(async () => { - const setup = await initialSetup(); - registry = setup.registry; - await registry.init(); - }); - - test.each([['@verdaccio/deprecated-1']])( - 'should deprecate a single package %s', - async (pkgName) => { - const message = 'some message'; - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - // deprecate one version - await deprecate(tempFolder, `${pkgName}@1.0.0`, registry, message); - // verify is deprecated - const infoBody = await pnpmUtils.getInfoVersions(pnpm, `${pkgName}`, registry); - expect(infoBody.name).toEqual(pkgName); - expect(infoBody.deprecated).toEqual(message); - } - ); - - test.each([['@verdaccio/deprecated-2']])('should un-deprecate a package %s', async (pkgName) => { - const message = 'some message'; - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - // deprecate one version - await deprecate(tempFolder, `${pkgName}@1.0.0`, registry, message); - // verify is deprecated - const infoBody = await pnpmUtils.getInfoVersions(pnpm, `${pkgName}`, registry); - expect(infoBody.deprecated).toEqual(message); - // empty string is same as undeprecate - await deprecate(tempFolder, `${pkgName}@1.0.0`, registry, ''); - const infoBody2 = await pnpmUtils.getInfoVersions(pnpm, `${pkgName}`, registry); - expect(infoBody2.deprecated).toBeUndefined(); - }); - - test.each([['@verdaccio/deprecated-3']])( - 'should deprecate a multiple packages %s', - async (pkgName) => { - const message = 'some message'; - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - // publish 1.0.0 - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - // publish 1.1.0 - await pnpmUtils.bumbUp(pnpm, tempFolder, registry); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - // publish 1.2.0 - await pnpmUtils.bumbUp(pnpm, tempFolder, registry); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - // publish 1.3.0 - await pnpmUtils.bumbUp(pnpm, tempFolder, registry); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - // // deprecate all version - await deprecate(tempFolder, pkgName, registry, message); - // verify is deprecated - for (let v of ['1.0.0', '1.1.0', '1.2.0', '1.3.0']) { - const infoResp = await pnpmUtils.getInfoVersions(pnpm, `${pkgName}@${v}`, registry); - expect(infoResp.deprecated).toEqual(message); - } - // publish normal version - // publish 1.4.0 - await pnpmUtils.bumbUp(pnpm, tempFolder, registry); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - const infoResp = await pnpmUtils.getInfoVersions(pnpm, `${pkgName}@1.4.0`, registry); - // must be not deprecated - expect(infoResp.deprecated).toBeUndefined(); - } - ); - - afterAll(async () => { - registry.stop(); - }); -}); diff --git a/e2e/cli/e2e-pnpm6/dist-tags.spec.ts b/e2e/cli/e2e-pnpm6/dist-tags.spec.ts deleted file mode 100644 index da9e7d9..0000000 --- a/e2e/cli/e2e-pnpm6/dist-tags.spec.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { - addRegistry, - initialSetup, - pnpmUtils, - prepareGenericEmptyProject, -} from '@verdaccio/test-cli-commons'; - -import { pnpm } from './utils'; - -describe('publish a package', () => { - jest.setTimeout(20000); - let registry; - - beforeAll(async () => { - const setup = await initialSetup(); - registry = setup.registry; - await registry.init(); - }); - - test.each([['@foo/foo', 'foo']])('should list dist-tags for %s', async (pkgName) => { - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - await pnpmUtils.bumbUp(pnpm, tempFolder, registry); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry, ['--tag', 'beta']); - const resp2 = await pnpm( - { cwd: tempFolder }, - 'dist-tag', - 'ls', - '--json', - ...addRegistry(registry.getRegistryUrl()) - ); - expect(resp2.stdout).toEqual('beta: 1.1.0latest: 1.0.0'); - }); - - test.each([['@verdaccio/bar']])('should remove tag with dist-tags for %s', async (pkgName) => { - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - await pnpmUtils.bumbUp(pnpm, tempFolder, registry); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry, ['--tag', 'beta']); - const resp2 = await pnpm( - { cwd: tempFolder }, - 'dist-tag', - 'rm', - `${pkgName}@1.1.0`, - 'beta', - ...addRegistry(registry.getRegistryUrl()) - ); - expect(resp2.stdout).toEqual('-beta: @verdaccio/bar@1.1.0'); - }); - - test.each([['@verdaccio/five']])( - 'should add tag to package and version with dist-tags for %s', - async (pkgName) => { - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - await pnpmUtils.bumbUp(pnpm, tempFolder, registry); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - const resp2 = await pnpm( - { cwd: tempFolder }, - 'dist-tag', - 'add', - `${pkgName}@1.1.0`, - 'alfa', - ...addRegistry(registry.getRegistryUrl()) - ); - expect(resp2.stdout).toEqual(`+alfa: ${pkgName}@1.1.0`); - } - ); - - afterAll(async () => { - registry.stop(); - }); -}); diff --git a/e2e/cli/e2e-pnpm6/info.spec.ts b/e2e/cli/e2e-pnpm6/info.spec.ts deleted file mode 100644 index 2c49c21..0000000 --- a/e2e/cli/e2e-pnpm6/info.spec.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons'; - -import { pnpm } from './utils'; - -describe('install a package', () => { - jest.setTimeout(10000); - let registry; - - beforeAll(async () => { - const setup = await initialSetup(); - registry = setup.registry; - await registry.init(); - }); - - test('should run pnpm info json body', async () => { - const resp = await pnpm( - {}, - 'info', - 'verdaccio', - '--json', - ...addRegistry(registry.getRegistryUrl()) - ); - const parsedBody = JSON.parse(resp.stdout as string); - expect(parsedBody.name).toEqual('verdaccio'); - expect(parsedBody.dependencies).toBeDefined(); - }); - - afterAll(async () => { - registry.stop(); - }); -}); diff --git a/e2e/cli/e2e-pnpm6/install.spec.ts b/e2e/cli/e2e-pnpm6/install.spec.ts deleted file mode 100644 index 77440d9..0000000 --- a/e2e/cli/e2e-pnpm6/install.spec.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons'; - -import { pnpm } from './utils'; - -describe('install a project packages', () => { - jest.setTimeout(80000); - let registry; - - beforeAll(async () => { - const setup = await initialSetup(); - registry = setup.registry; - await registry.init(); - }); - - test('should run npm install json body', async () => { - const { tempFolder } = await prepareGenericEmptyProject( - 'something', - '1.0.0-patch', - registry.port, - registry.getToken(), - registry.getRegistryUrl(), - { react: '18.2.0' } - ); - const resp = await pnpm( - { cwd: tempFolder }, - 'install', - '--reporter=default', - ...addRegistry(registry.getRegistryUrl()) - ); - expect(resp.stdout).toMatch(/react/); - }); - - afterAll(async () => { - registry.stop(); - }); -}); diff --git a/e2e/cli/e2e-pnpm6/jest.config.js b/e2e/cli/e2e-pnpm6/jest.config.js deleted file mode 100644 index cd97591..0000000 --- a/e2e/cli/e2e-pnpm6/jest.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const config = require('../jest.config'); - -module.exports = { ...config }; diff --git a/e2e/cli/e2e-pnpm6/package.json b/e2e/cli/e2e-pnpm6/package.json deleted file mode 100644 index 33ff364..0000000 --- a/e2e/cli/e2e-pnpm6/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "private": true, - "name": "@verdaccio/e2e-cli-pnpm6", - "version": "1.0.1-6-next.5", - "dependencies": { - "@verdaccio/test-cli-commons": "workspace:1.0.1-6-next.5", - "pnpm": "latest-6" - }, - "scripts": { - "test": "jest" - } -} diff --git a/e2e/cli/e2e-pnpm6/ping.spec.ts b/e2e/cli/e2e-pnpm6/ping.spec.ts deleted file mode 100644 index f8ae245..0000000 --- a/e2e/cli/e2e-pnpm6/ping.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons'; - -import { pnpm } from './utils'; - -describe('ping registry', () => { - jest.setTimeout(10000); - let registry; - - beforeAll(async () => { - const setup = await initialSetup(); - registry = setup.registry; - await registry.init(); - }); - - test('should ping registry', async () => { - const resp = await pnpm({}, 'ping', '--json', ...addRegistry(registry.getRegistryUrl())); - const parsedBody = JSON.parse(resp.stdout as string); - expect(parsedBody.registry).toEqual(registry.getRegistryUrl() + '/'); - }); - - afterAll(async () => { - registry.stop(); - }); -}); diff --git a/e2e/cli/e2e-pnpm6/publish.spec.ts b/e2e/cli/e2e-pnpm6/publish.spec.ts deleted file mode 100644 index 4a2a629..0000000 --- a/e2e/cli/e2e-pnpm6/publish.spec.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons'; - -import { pnpm } from './utils'; - -describe('install a package', () => { - jest.setTimeout(10000); - let registry; - - beforeAll(async () => { - const setup = await initialSetup(); - registry = setup.registry; - await registry.init(); - }); - - test.each([['verdaccio-memory', 'verdaccio', '@verdaccio/foo', '@verdaccio/some-foo']])( - 'should publish a package %s', - async (pkgName) => { - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0-patch', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - const resp = await pnpm( - { cwd: tempFolder }, - 'publish', - '--json', - ...addRegistry(registry.getRegistryUrl()) - ); - const parsedBody = JSON.parse(resp.stdout as string); - expect(parsedBody.name).toEqual(pkgName); - expect(parsedBody.files).toBeDefined(); - expect(parsedBody.files).toBeDefined(); - } - ); - - afterAll(async () => { - registry.stop(); - }); -}); diff --git a/e2e/cli/e2e-pnpm6/search.spec.ts b/e2e/cli/e2e-pnpm6/search.spec.ts deleted file mode 100644 index ec06178..0000000 --- a/e2e/cli/e2e-pnpm6/search.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons'; - -import { pnpm } from './utils'; - -describe('search a package', () => { - jest.setTimeout(10000); - let registry; - - beforeAll(async () => { - const setup = await initialSetup(); - registry = setup.registry; - await registry.init(); - }); - - test('should search a package', async () => { - const resp = await pnpm( - {}, - 'search', - '@verdaccio/cli', - '--json', - ...addRegistry(registry.getRegistryUrl()) - ); - const parsedBody = JSON.parse(resp.stdout as string); - const pkgFind = parsedBody.find((item) => { - return item.name === '@verdaccio/cli'; - }); - expect(pkgFind.name).toEqual('@verdaccio/cli'); - }); - - afterAll(async () => { - registry.stop(); - }); -}); diff --git a/e2e/cli/e2e-pnpm6/star.spec.ts b/e2e/cli/e2e-pnpm6/star.spec.ts deleted file mode 100644 index d0b906f..0000000 --- a/e2e/cli/e2e-pnpm6/star.spec.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { - addRegistry, - initialSetup, - pnpmUtils, - prepareGenericEmptyProject, -} from '@verdaccio/test-cli-commons'; - -import { pnpm } from './utils'; - -describe('star a package', () => { - jest.setTimeout(20000); - let registry; - - beforeAll(async () => { - const setup = await initialSetup(); - registry = setup.registry; - await registry.init(); - }); - - test.each([['@verdaccio/foo']])('should star a package %s', async (pkgName) => { - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0-patch', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - const resp = await pnpm( - { cwd: tempFolder }, - 'star', - pkgName, - ...addRegistry(registry.getRegistryUrl()) - ); - expect(resp.stdout).toEqual(`★ ${pkgName}`); - }); - - test.each([['@verdaccio/bar']])('should unstar a package %s', async (pkgName) => { - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0-patch', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - const resp = await pnpm( - { cwd: tempFolder }, - 'star', - pkgName, - ...addRegistry(registry.getRegistryUrl()) - ); - expect(resp.stdout).toEqual(`★ ${pkgName}`); - - const resp1 = await pnpm( - { cwd: tempFolder }, - 'unstar', - pkgName, - ...addRegistry(registry.getRegistryUrl()) - ); - expect(resp1.stdout).toEqual(`☆ ${pkgName}`); - }); - - test('should list stars of a user %s', async () => { - const pkgName = '@verdaccio/stars'; - const { tempFolder } = await prepareGenericEmptyProject( - pkgName, - '1.0.0-patch', - registry.port, - registry.getToken(), - registry.getRegistryUrl() - ); - await pnpmUtils.publish(pnpm, tempFolder, pkgName, registry); - await pnpm({ cwd: tempFolder }, 'star', pkgName, ...addRegistry(registry.getRegistryUrl())); - const resp = await pnpm( - { cwd: tempFolder }, - 'stars', - ...addRegistry(registry.getRegistryUrl()) - ); - // side effects: this result is affected the the package published in the previous step - expect(resp.stdout).toEqual(`@verdaccio/foo@verdaccio/stars`); - }); - - afterAll(async () => { - registry.stop(); - }); -}); diff --git a/e2e/cli/e2e-pnpm6/tsconfig.json b/e2e/cli/e2e-pnpm6/tsconfig.json deleted file mode 100644 index 85f4cec..0000000 --- a/e2e/cli/e2e-pnpm6/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../../tsconfig.reference.json", - "references": [ - { - "path": "../cli-commons" - } - ] -} diff --git a/e2e/cli/e2e-pnpm6/utils.ts b/e2e/cli/e2e-pnpm6/utils.ts deleted file mode 100644 index a9d8654..0000000 --- a/e2e/cli/e2e-pnpm6/utils.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { SpawnOptions } from 'child_process'; -import { join } from 'path'; - -import { exec } from '@verdaccio/test-cli-commons'; - -function getCommand() { - return join(__dirname, './node_modules/.bin/pnpm'); -} - -function pnpm(options: SpawnOptions, ...args: string[]) { - return exec(options, getCommand(), args); -} - -export { pnpm };