// test.js
import tp from 'testpass'
tp.test('foo', t => {
t.eq(123, 123)
})
when i exec: node test.js then i get a error saying:
type-error % node test.js
/CODE/node_modules/testpass/src/context.js:63
throw Error(`Test module was not loaded properly: "${path}"`)
^
Error: Test module was not loaded properly: "file:///CODE/test.js"
at Object.getContext [as get] (/CODE/node_modules/testpass/src/context.js:63:11)
at new Test (/CODE/node_modules/testpass/src/index.js:158:23)
at Object.test (/CODE/node_modules/testpass/src/index.js:82:10)
at file:///CODE/test.js:3:4
at ModuleJob.run (node:internal/modules/esm/module_job:183:25)
at async Loader.import (node:internal/modules/esm/loader:178:24)
at async Object.loadESM (node:internal/process/esm_loader:68:5)
at async handleMainPromise (node:internal/modules/run_main:63:12)
i got this small setup:
when i exec:
node test.js
then i get a error saying: