build: switch default to ESM
[poolifier.git] / tests / worker-files / cluster / errorWorker.cjs
similarity index 72%
rename from tests/worker-files/cluster/errorWorker.js
rename to tests/worker-files/cluster/errorWorker.cjs
index b8e11d369d20c3ff06e2fc506f83aeda39feaa49..2dcfe6252fea9f973e99e81c78d785887e9b8799 100644 (file)
@@ -1,5 +1,5 @@
 'use strict'
-const { ClusterWorker, KillBehaviors } = require('../../../lib')
+const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
 
 function error () {
   throw new Error('Error Message from ClusterWorker')