mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-12 05:24:43 +00:00
199f6ab2ff
* initialise the new package * feat: implement LocalStorageDiscovery * add: Startable to cspell * add compliance test * add: discovery tests * rm: browser tests script * address comments * add type safety to getting peers from local * only dispatch peer if it does not exist * move ws ma extraction to utils * chore: update package name to local-discovery * fix: add compliance test with no external deps on service node * use peer:identify instead of peer:update * add: unit tests & remove sdk dependency * move tests to self package * update cspell + remove unrequired deps * add types * maintain in-memory peers for localstorage * address comments * chore: rename * use name from options * fix: saving peers * rm: only
27 lines
660 B
JavaScript
27 lines
660 B
JavaScript
const config = {
|
|
extension: ['ts'],
|
|
spec: 'src/**/*.spec.ts',
|
|
require: ['ts-node/register', 'isomorphic-fetch'],
|
|
loader: 'ts-node/esm',
|
|
'node-option': [
|
|
'experimental-specifier-resolution=node',
|
|
'loader=ts-node/esm'
|
|
],
|
|
exit: true
|
|
};
|
|
|
|
if (process.env.CI) {
|
|
console.log("Running tests in parallel");
|
|
config.parallel = true;
|
|
config.jobs = 6;
|
|
console.log("Activating allure reporting");
|
|
config.reporter = 'mocha-multi-reporters';
|
|
config.reporterOptions = {
|
|
configFile: '.mocha.reporters.json'
|
|
};
|
|
} else {
|
|
console.log("Running tests serially. To enable parallel execution update mocha config");
|
|
}
|
|
|
|
module.exports = config;
|