You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jest-codemods ./test/unit_tests/event/EventRepositorySpec.js
? Which parser do you want to use? TypeScript & TSX
? Which test library would you like to migrate from? Jasmine: globals
? Are you using the global object for assertions (i.e. without requiring them) Yes, and I'm not afraid of false positive transformations
? Will you be using Jest on Node.js as your test runner? Yes, use the globals provided by Jest (recommended)
NOTICE: Skipping import detection, you might get false positives
Executing command: jscodeshift -t C:\Users\bn\AppData\Roaming\nvm\v14.13.1\node_modules\jest-codemods\dist\transformers\jasmine-globals.js ./test/unit_tests/event/EventRepositorySpec.js --ignore-pattern node_modul
es --parser tsx --extensions=tsx,ts --skipImportDetection=true
Processing 1 files...
Spawning 1 workers...
Sending 1 files to free worker...
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'core-js/modules/es6.object.to-string.js'
Require stack:
- C:\Users\bn\AppData\Roaming\nvm\v14.13.1\node_modules\jest-codemods\dist\utils\consts.js
- C:\Users\bn\AppData\Roaming\nvm\v14.13.1\node_modules\jest-codemods\dist\utils\finale.js
- C:\Users\bn\AppData\Roaming\nvm\v14.13.1\node_modules\jest-codemods\dist\transformers\jasmine-globals.js
- C:\Users\bn\AppData\Roaming\nvm\v14.13.1\node_modules\jest-codemods\node_modules\jscodeshift\src\Worker.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (C:\Users\bn\AppData\Roaming\nvm\v14.13.1\node_modules\jest-codemods\dist\utils\consts.js:3:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Module._compile (C:\Users\bn\AppData\Roaming\nvm\v14.13.1\node_modules\jest-codemods\node_modules\pirates\lib\index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Object.newLoader [as .js] (C:\Users\bn\AppData\Roaming\nvm\v14.13.1\node_modules\jest-codemods\node_modules\pirates\lib\index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:928:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\bn\\AppData\\Roaming\\nvm\\v14.13.1\\node_modules\\jest-codemods\\dist\\utils\\consts.js',
'C:\\Users\\bn\\AppData\\Roaming\\nvm\\v14.13.1\\node_modules\\jest-codemods\\dist\\utils\\finale.js',
'C:\\Users\\bn\\AppData\\Roaming\\nvm\\v14.13.1\\node_modules\\jest-codemods\\dist\\transformers\\jasmine-globals.js',
'C:\\Users\\bn\\AppData\\Roaming\\nvm\\v14.13.1\\node_modules\\jest-codemods\\node_modules\\jscodeshift\\src\\Worker.js'
]
}
All done.
Results:
0 errors
0 unmodified
0 skipped
0 ok
Time elapsed: 2.514seconds
Hello, I installed
jest-codemods
(v0.23.0) globally and ran the following command:Afterwards I got to see this error:
Here is the file which I tried to convert:
Am I holding it wrong?
The text was updated successfully, but these errors were encountered: