doctor icon indicating copy to clipboard operation
doctor copied to clipboard

tests failing in Windows

Open UlisesGascon opened this issue 1 year ago • 0 comments

Seems like windows-latest is failing due the environment configuration

Run npm test

> [email protected] test D:\a\doctor\doctor
> xo && mocha test/** -R spec

internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'D:\a\doctor\doctor\test'
Require stack:
- D:\a\doctor\doctor\node_modules\mocha\lib\mocha.js
- D:\a\doctor\doctor\node_modules\mocha\index.js
- D:\a\doctor\doctor\node_modules\mocha\bin\_mocha
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:7[4](https://github.com/yeoman/doctor/actions/runs/12847119033/job/35823070940?pr=66#step:6:5):18)
    at D:\a\doctor\doctor\node_modules\mocha\lib\mocha.js:231:27
    at Array.forEach (<anonymous>)
    at Mocha.loadFiles (D:\a\doctor\doctor\node_modules\mocha\lib\mocha.js:228:14)
    at Mocha.run (D:\a\doctor\doctor\node_modules\mocha\lib\mocha.js:[5](https://github.com/yeoman/doctor/actions/runs/12847119033/job/35823070940?pr=66#step:6:6)36:10)
    at Object.<anonymous> (D:\a\doctor\doctor\node_modules\mocha\bin\_mocha:573:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:8[6](https://github.com/yeoman/doctor/actions/runs/12847119033/job/35823070940?pr=66#step:6:7)3:32)
    at Function.Module._load (internal/modules/cjs/loader.js:[7](https://github.com/yeoman/doctor/actions/runs/12847119033/job/35823070940?pr=66#step:6:8)0[8](https://github.com/yeoman/doctor/actions/runs/12847119033/job/35823070940?pr=66#step:6:9):14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:[12](https://github.com/yeoman/doctor/actions/runs/12847119033/job/35823070940?pr=66#step:6:13))
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'D:\\a\\doctor\\doctor\\node_modules\\mocha\\lib\\mocha.js',
    'D:\\a\\doctor\\doctor\\node_modules\\mocha\\index.js',
    'D:\\a\\doctor\\doctor\\node_modules\\mocha\\bin\\_mocha'
  ]
}
npm ERR! Test failed.  See above for more details.
Error: Process completed with exit code 1.

UlisesGascon avatar Jan 18 '25 20:01 UlisesGascon