import cluster, { Worker as ClusterWorker } from 'node:cluster'
import { existsSync } from 'node:fs'
-import { env } from 'node:process'
import {
SHARE_ENV,
Worker as ThreadWorker,
}
}
}
-if (env.NODE_ENV === 'test') {
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
- exports.updateMeasurementStatistics = updateMeasurementStatistics
-}
+export { updateMeasurementStatistics }
export const updateWaitTimeWorkerUsage = <
Worker extends IWorker,
-import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
+import { KillBehaviors, ThreadWorker } from '../../../lib/index.mjs'
import { sleepTaskFunction } from '../../test-utils.cjs'
/**
-import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
+import { KillBehaviors, ThreadWorker } from '../../../lib/index.mjs'
import { sleepTaskFunction } from '../../test-utils.cjs'
/**
-import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
+import { KillBehaviors, ThreadWorker } from '../../../lib/index.mjs'
/**
* Test worker function that echoes the input data.
-import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
+import { KillBehaviors, ThreadWorker } from '../../../lib/index.mjs'
/**
*
-import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
+import { KillBehaviors, ThreadWorker } from '../../../lib/index.mjs'
/**
*
-import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
+import { KillBehaviors, ThreadWorker } from '../../../lib/index.mjs'
import { sleepTaskFunction } from '../../test-utils.cjs'
/**
-import { ThreadWorker } from '../../../lib/index.cjs'
+import { ThreadWorker } from '../../../lib/index.mjs'
import { sleepTaskFunction } from '../../test-utils.cjs'
/**
-import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
+import { KillBehaviors, ThreadWorker } from '../../../lib/index.mjs'
import {
factorial,
fibonacci,
-import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
+import { KillBehaviors, ThreadWorker } from '../../../lib/index.mjs'
import {
factorial,
fibonacci,
-import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs'
+import { KillBehaviors, ThreadWorker } from '../../../lib/index.mjs'
import { TaskFunctions } from '../../test-types.cjs'
import { executeTaskFunction } from '../../test-utils.cjs'