{
"$schema": "https://json.schemastore.org/mocharc",
- "parallel": true,
+ "parallel": false,
"diff": true,
"package": "./package.json",
- "timeout": 60000,
+ "timeout": 120000,
"full-trace": true,
"exit": true,
"enable-source-maps": true,
"benchmark:tatami-ng:prod": "pnpm build:prod && node --enable-source-maps benchmarks/internal/bench.mjs -t tatami-ng",
"benchmark:tatami-ng:debug": "pnpm build && node --enable-source-maps --inspect benchmarks/internal/bench.mjs -t tatami-ng",
"test": "pnpm build --environment SOURCEMAP:false && cross-env NODE_ENV=test c8 mocha 'tests/**/*.test.mjs'",
- "test:debug": "pnpm build && cross-env NODE_ENV=test mocha --no-parallel --inspect 'tests/**/*.test.mjs'",
+ "test:parallel": "pnpm build --environment SOURCEMAP:false && cross-env NODE_ENV=test c8 mocha --parallel 'tests/**/*.test.mjs'",
+ "test:debug": "pnpm build && cross-env NODE_ENV=test mocha --inspect 'tests/**/*.test.mjs'",
"coverage": "c8 report --reporter=lcov",
"coverage:html": "c8 report --reporter=html",
"format": "biome format . --write; eslint . --cache --fix",
>()
this.checkWorkerOptions(this.opts)
if (!this.isMain) {
- if (process.platform === 'win32') {
- // Node.js on windows has a bug at worker side message counting
- this.getMainWorker().on('message', this.handleReadyMessage.bind(this))
- } else {
- this.getMainWorker().once('message', this.handleReadyMessage.bind(this))
- }
+ this.getMainWorker().once('message', this.handleReadyMessage.bind(this))
}
}
expect(poolDestroy).toBe(1)
})
- it('Verify that thread pool options are checked', async () => {
+ it.skip('Verify that thread pool options are checked', async () => {
const workerFilePath = './tests/worker-files/thread/testWorker.mjs'
let pool = new FixedThreadPool(numberOfThreads, workerFilePath)
expect(pool.opts.workerOptions).toBeUndefined()