0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/test/e2e-cli/test_bk/search.spec.ts
Behrang Yarahmadi 13310814da
#2606 add prettier plugin sort imports (#2607)
* #2606 add prettier plugin sort imprts

* #2606 update pnpm-lock.yaml

* #2606 update eslint rules

* #2606 fixes website directory formatting

Co-authored-by: Ayush Sharma <ayush.sharma@trivago.com>
2021-10-29 17:33:05 +02:00

24 lines
668 B
TypeScript

import { npm } from '../utils/process';
import { addRegistry, initialSetup } from '../utils/registry';
describe('search a package', () => {
jest.setTimeout(90000);
const port = `9014`;
let registryProcess;
beforeAll(async () => {
registryProcess = await initialSetup(port);
});
test('should run npm search on v1', async () => {
// await waitOnRegistry(port);
const resp = await npm('search', 'verdaccio-memory', '--json', ...addRegistry(port));
const { stdout } = resp;
const response = JSON.parse(stdout);
expect(Array.isArray(response)).toBeTruthy();
});
afterAll(async () => {
registryProcess.child.kill();
});
});