From: Jérôme Benoit Date: Sun, 9 Oct 2022 19:08:38 +0000 (+0200) Subject: Fix lint-staged configuration X-Git-Tag: v2.3.1~55 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ff07812554946161cb770d3c42a03b77be0804c2;p=poolifier.git Fix lint-staged configuration Signed-off-by: Jérôme Benoit --- diff --git a/.lintstagedrc.js b/.lintstagedrc.js index ad032a8b..9b4543c0 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,4 +1,6 @@ module.exports = { '**/*.{js,mjs,ts}': ['eslint --cache --fix'], - '**/*.{json,md,yml}': ['prettier --write'] + '**/*.{json,md,yml}': [ + 'prettier --loglevel silent --write, prettierx --write' + ] } diff --git a/tests/pools/abstract/abstract-pool.test.js b/tests/pools/abstract/abstract-pool.test.js index 24c7debd..1e337ff9 100644 --- a/tests/pools/abstract/abstract-pool.test.js +++ b/tests/pools/abstract/abstract-pool.test.js @@ -4,19 +4,15 @@ const { 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