Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
module.exports = {
'**/*.{js,mjs,ts}': ['eslint --cache --fix'],
- '**/*.{json,md,yml}': ['prettier --write']
+ '**/*.{json,md,yml}': [
+ 'prettier --loglevel silent --write, prettierx --write'
+ ]
}
FixedThreadPool,
WorkerChoiceStrategies
} = require('../../../lib/index')
-
const numberOfWorkers = 1
-
const workerNotFoundInTasksUsageMapError = new Error(
'Worker could not be found in worker tasks usage map'
)
-
class StubPoolWithWorkerTasksUsageMapClear extends FixedThreadPool {
removeAllWorker () {
this.workersTasksUsage.clear()
}
}
-
class StubPoolWithIsMainMethod extends FixedThreadPool {
isMain () {
return false