test: Update jest configuration (#3951)

* Split shared tests

* Centralize and parallelize jest config

* ci
This commit is contained in:
Tom Moor
2022-08-10 21:26:36 +01:00
committed by GitHub
parent e5c5e8907a
commit 593cf73118
11 changed files with 116 additions and 170 deletions

View File

@@ -1,17 +0,0 @@
export default class Queue {
name;
constructor(name) {
this.name = name;
}
process = (fn) => {
console.log(`Registered function ${this.name}`);
this.processFn = fn;
};
add = (data) => {
console.log(`Running ${this.name}`);
return this.processFn({ data });
};
}

View File

@@ -1,2 +1 @@
// Mock for node-uuid
global.console.warn = () => {};