Greetings, I’m getting an error code on attempts to use the command “npm run test”
Error: Cannot find module ‘C:\Users\UserName\Git Tests\will-it-miss\tests*.js’
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack: []
}
I assumed, from reading this error, that this means the file for the nasa test in the learning section is unable to be found at the specified location. I have checked the file path to ensure it is in the path in the same location as Cannot find module ‘C:…’. I additionally ensured that the code was done correctly, for the nasa-feed.test.js and the package.json files. If anyone else has had this issue, or has found a workaround please let me know at the earliest convenience, as everything appears to be correct.
Thanks in advance!