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