mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
66f4197236
* chore: test * chore: add * chore: more progress * chore: progress in migration, fix prettier parser * chore: reduce tsc errors * chore: refactor storage utils types * chore: refactor utils types * chore: refactor local storage types * chore: refactor config utils types * chore: refactor tsc types * refactor: apply eslint fix, tabs etc * chore: fix lint errors * test: update unit test conf to typescript setup few test refactored to typescript * chore: enable more unit test migrate to typescript * chore: migrate storage test to tsc * chore: migrate up storage test to tsc * refactor: enable plugin and auth test * chore: migrate plugin loader test * chore: update dependencies * chore: migrate functional test to typescript * chore: add codecove * chore: update express * chore: downgrade puppeteer The latest version does not seems to work properly fine. * chore: update dependencies
78 lines
2.3 KiB
TypeScript
78 lines
2.3 KiB
TypeScript
// we need this for notifications
|
|
import { setup } from '../../src/lib/logger';
|
|
|
|
setup([]);
|
|
|
|
import {IServerBridge} from '../types';
|
|
|
|
import basic from './basic/basic';
|
|
import packageAccess from './package/access';
|
|
import packageGzip from './package/gzip';
|
|
import packageScoped from './package/scoped';
|
|
import tags from './tags/tags';
|
|
import distTagsMerge from './tags/dist-tags-merge';
|
|
import addtag from './tags/addtag';
|
|
import adduser from './adduser/adduser';
|
|
import logout from './adduser/logout';
|
|
import notify from './notifications/notify';
|
|
import incomplete from './sanity/incomplete';
|
|
import mirror from './sanity/mirror';
|
|
import readme from './readme/readme';
|
|
import gh29 from './scenarios/gh29';
|
|
import nullstorage from './sanity/nullstorage';
|
|
import simpleSearch from './search/simple.search';
|
|
import racycrash from './sanity/racycrash';
|
|
import security from './sanity/security';
|
|
import race from './performance/race';
|
|
import pluginsAuth from './plugins/auth';
|
|
import middleware from './plugins/middleware';
|
|
import upLinkCache from './uplinks/cache';
|
|
import uplinkTimeout from './uplinks/timeout';
|
|
|
|
describe('functional test verdaccio', function() {
|
|
jest.setTimeout(20000);
|
|
// @ts-ignore
|
|
const server1: IServerBridge = global.__SERVERS__[0];
|
|
// @ts-ignore
|
|
const server2: IServerBridge = global.__SERVERS__[1];
|
|
// @ts-ignore
|
|
const server3: IServerBridge = global.__SERVERS__[2];
|
|
// @ts-ignore
|
|
const app = global.__WEB_SERVER__.app;
|
|
|
|
// list of test
|
|
// note: order of the following calls is important, the reason is legacy code.
|
|
packageAccess(server1);
|
|
gh29(server1, server2);
|
|
tags(server1, app);
|
|
packageGzip(server1, app);
|
|
incomplete(server1, app);
|
|
mirror(server1, server2);
|
|
distTagsMerge(server1, server2, server3);
|
|
readme(server1, server2);
|
|
nullstorage(server1, server2);
|
|
middleware(server2);
|
|
race(server1);
|
|
racycrash(server1, app);
|
|
packageScoped(server1, server2);
|
|
security(server1);
|
|
addtag(server1);
|
|
pluginsAuth(server2);
|
|
notify(app);
|
|
uplinkTimeout(server1, server2, server3);
|
|
// requires packages published to server1/server2
|
|
upLinkCache(server1, server2, server3);
|
|
adduser(server1);
|
|
logout(server1);
|
|
basic(server1, server2);
|
|
simpleSearch(server1, server2, app)
|
|
|
|
});
|
|
|
|
process.on('unhandledRejection', function(err) {
|
|
console.error("unhandledRejection", err);
|
|
process.nextTick(function() {
|
|
throw err;
|
|
});
|
|
});
|