0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00
verdaccio/test/unit/modules/bootstrap/legacy.spec.ts
Juan Picado 7b1414733b
feat: migrateToSecureLegacySignature 6.x (#4643)
* migrate to forceMigrateToSecureLegacySignature

update dependencies

* Update ci.yml

* Update ci.yml

* format

* improve ci
2024-05-13 19:52:34 +02:00

29 lines
945 B
TypeScript

import { join } from 'path';
import { parseConfigFile } from '@verdaccio/config';
import startVerdaccioDeault, { startVerdaccio } from '../../../../src';
describe('bootstrap legacy', () => {
describe('startVerdaccio', () => {
test('run server should be able to listen', (done) => {
const p = join(__dirname, './config.yaml');
const cache = join(__dirname, 'cache');
const config = parseConfigFile(p);
startVerdaccio(config, '5000', cache, '1.0.0', 'verdaccio', (server, addr) => {
server.close();
done();
});
});
test('run server should be able to listen default method', (done) => {
const p = join(__dirname, './config.yaml');
const cache = join(__dirname, 'cache');
const config = parseConfigFile(p);
startVerdaccioDeault(config, '5000', cache, '1.0.0', 'verdaccio', (server, addr) => {
server.close();
done();
});
});
});
});