mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
vitest migration some packages (#4871)
This commit is contained in:
parent
5cfbc1485d
commit
4afca90e21
117 changed files with 533 additions and 427 deletions
5
.changeset/quick-seas-deny.md
Normal file
5
.changeset/quick-seas-deny.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@verdaccio/loaders': minor
|
||||
---
|
||||
|
||||
chore: remove logger as dependency
|
2
.github/workflows/e2e-ci.yml
vendored
2
.github/workflows/e2e-ci.yml
vendored
|
@ -45,7 +45,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Use Node 16
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
"verdaccio": "workspace:8.0.0-next-8.2"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"test": "echo no test",
|
||||
"type-check": "tsc --noEmit -p tsconfig.build.json",
|
||||
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
|
||||
"build:js": "babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps",
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { deepEqual } from 'assert';
|
||||
|
||||
import { addRegistry } from './utils';
|
||||
|
||||
export async function bumbUp(cmd, tempFolder, registry) {
|
||||
|
@ -13,7 +15,7 @@ export async function publish(cmd, tempFolder, pkgName, registry, arg: string[]
|
|||
...addRegistry(registry.getRegistryUrl())
|
||||
);
|
||||
const parsedBody = JSON.parse(resp.stdout as string);
|
||||
expect(parsedBody.name).toEqual(pkgName);
|
||||
deepEqual(parsedBody.name, pkgName);
|
||||
}
|
||||
|
||||
export async function getInfoVersions(cmd, pkgName, registry) {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('audit a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('deprecate a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
async function deprecate(tempFolder, packageVersion, registry, message) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('publish a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a project packages', () => {
|
||||
jest.setTimeout(100000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
const config = require('../jest.config');
|
||||
|
||||
module.exports = { ...config };
|
|
@ -7,6 +7,6 @@
|
|||
"npm": "10.8.2"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 50000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('ping registry', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('search a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('star a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('audit a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('deprecate a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
async function deprecate(tempFolder, packageVersion, registry, message) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('publish a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a project packages', () => {
|
||||
jest.setTimeout(80000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
const config = require('../jest.config');
|
||||
|
||||
module.exports = { ...config };
|
|
@ -7,6 +7,6 @@
|
|||
"npm": "9.9.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 20000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('ping registry', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('publish a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('search a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('star a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('audit a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('deprecate a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
async function deprecate(tempFolder, packageVersion, registry, message) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('publish a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a project packages', () => {
|
||||
jest.setTimeout(80000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
const config = require('../jest.config');
|
||||
|
||||
module.exports = { ...config };
|
|
@ -7,6 +7,6 @@
|
|||
"npm": "9.9.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 50000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('ping registry', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('search a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('star a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('audit a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('deprecate a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
async function deprecate(tempFolder, packageVersion, registry, message) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('publish a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a project packages', () => {
|
||||
jest.setTimeout(100000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
const config = require('../jest.config');
|
||||
|
||||
module.exports = { ...config };
|
|
@ -7,6 +7,6 @@
|
|||
"npm": "9.9.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 50000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('ping registry', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('search a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('star a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('audit a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('deprecate a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
async function deprecate(tempFolder, packageVersion, registry, message) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('publish a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a project packages', () => {
|
||||
jest.setTimeout(100000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
const config = require('../jest.config');
|
||||
|
||||
module.exports = { ...config };
|
|
@ -7,6 +7,6 @@
|
|||
"npm": "9.9.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 50000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('ping registry', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { npm } from './utils';
|
||||
|
||||
describe('search a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { npm } from './utils';
|
||||
|
||||
describe('star a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { pnpm } from './utils';
|
||||
|
||||
describe('deprecate a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
async function deprecate(tempFolder, packageVersion, registry, message) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { pnpm } from './utils';
|
||||
|
||||
describe('publish a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
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 () => {
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
const config = require('../jest.config');
|
||||
|
||||
module.exports = { ...config };
|
|
@ -7,6 +7,6 @@
|
|||
"pnpm": "8.15.5"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 50000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('ping registry', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('search a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { pnpm } from './utils';
|
||||
|
||||
describe('star a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { pnpm } from './utils';
|
||||
|
||||
describe('deprecate a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
async function deprecate(tempFolder, packageVersion, registry, message) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { pnpm } from './utils';
|
||||
|
||||
describe('publish a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
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 () => {
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
const config = require('../jest.config');
|
||||
|
||||
module.exports = { ...config };
|
|
@ -7,6 +7,6 @@
|
|||
"pnpm": "9.0.0-alpha.10"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 50000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('ping registry', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { pnpm } from './utils';
|
||||
|
||||
describe('search a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import {
|
||||
addRegistry,
|
||||
initialSetup,
|
||||
|
@ -8,7 +10,6 @@ import {
|
|||
import { pnpm } from './utils';
|
||||
|
||||
describe('star a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { yarn } from './utils';
|
||||
|
||||
describe('audit a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { yarn } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { yarn } from './utils';
|
||||
|
||||
describe('install a project packages', () => {
|
||||
jest.setTimeout(80000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
"yarn": "1.22.22"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 50000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { yarn } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { addRegistry, initialSetup, prepareGenericEmptyProject } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { yarn } from './utils';
|
||||
|
@ -7,7 +9,6 @@ export async function bumbUp(tempFolder, registry) {
|
|||
}
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('audit a package yarn 2', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('install a packages', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
"@yarnpkg/cli-dist": "2.4.2"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 50000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('install a packages', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('audit a package yarn 3', () => {
|
||||
jest.setTimeout(10000);
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('install a packages', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
const config = require('../jest.config');
|
||||
|
||||
module.exports = { ...config };
|
|
@ -7,6 +7,6 @@
|
|||
"@yarnpkg/cli-dist": "3.8.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "vitest run --testTimeout 50000"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('install a packages', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('install a package', () => {
|
||||
jest.setTimeout(20000);
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
import { afterAll, beforeAll, describe, expect, test, vi } from 'vitest';
|
||||
|
||||
import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons';
|
||||
|
||||
import { getYarnCommand, yarn } from './utils';
|
||||
|
||||
describe('install a packages', () => {
|
||||
jest.setTimeout(20000);
|
||||
vi.setConfig({ testTimeout: 90000 });
|
||||
let registry;
|
||||
let projectFolder;
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue