build: switch default to ESM
[poolifier.git] / tests / worker / abstract-worker.test.mjs
index 4abbbeb1e17a0ff0528944e0f6e8707e4ad607d5..3e5f55187f16b3e46ba2ce9bf1292cd6bcf88eb2 100644 (file)
@@ -1,7 +1,7 @@
 import { expect } from 'expect'
 import { restore, stub } from 'sinon'
-import { ClusterWorker, KillBehaviors, ThreadWorker } from '../../lib/index.js'
-import { DEFAULT_TASK_NAME, EMPTY_FUNCTION } from '../../lib/utils.js'
+import { ClusterWorker, KillBehaviors, ThreadWorker } from '../../lib/index.cjs'
+import { DEFAULT_TASK_NAME, EMPTY_FUNCTION } from '../../lib/utils.cjs'
 
 describe('Abstract worker test suite', () => {
   class StubWorkerWithMainWorker extends ThreadWorker {