mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-12 13:34:48 +00:00
80a33b9c2b
* allure test reporting * make reports only for the main job * fail a test for demo * fail a test for demo * revert * fail a test for demo * revert * deploy to allure-jswaku * use PAT * add pat as secret * check if pat exists * debug secrets issue * remove debug steps * debug1 * debug2 * debug3 * debug4 * set reports for all tests * fix after ci run * self review --------- Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
27 lines
658 B
JavaScript
27 lines
658 B
JavaScript
const config = {
|
|
extension: ['ts'],
|
|
spec: 'src/**/*.spec.ts',
|
|
require: ['ts-node/register', 'isomorphic-fetch'],
|
|
loader: 'ts-node/esm',
|
|
nodeOptions: [
|
|
'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;
|