Can't run a particular test using arrow grin button (jest)

I'm getting this output:

Test framework quit unexpectedly

"C:\Program Files\nodejs\node.exe" --require "C:\Program Files\JetBrains\WebStorm 2021.3\plugins\JavaScriptLanguage\helpers\jest-intellij\lib\jest-intellij-stdin-fix.js" C:\SPA\shop-spa\node_modules\jest\bin\jest.js --colors --reporters "C:\Program Files\JetBrains\WebStorm 2021.3\plugins\JavaScriptLanguage\helpers\jest-intellij\lib\jest-intellij-reporter.js" --verbose "--testNamePattern=^MyShopLinkLogo " --runTestsByPath C:\SPA\shop-spa\packages\web\src\components\base\Header\components\MyShopLinkLogo\test.spec.tsx
TypeError: shim$1.Parser.looksLikeNumber is not a function
    at Object.Yargs.self._parsePositionalNumbers (C:\SPA\shop-spa\node_modules\yargs\build\index.cjs:2804:31)
    at Object.Yargs.self._postProcess (C:\SPA\shop-spa\node_modules\yargs\build\index.cjs:2787:25)
    at Object.parseArgs [as _parseArgs] (C:\SPA\shop-spa\node_modules\yargs\build\index.cjs:2774:21)
    at Object.get [as argv] (C:\SPA\shop-spa\node_modules\yargs\build\index.cjs:2651:25)
    at buildArgv (C:\SPA\shop-spa\node_modules\jest-cli\build\cli\index.js:183:23)
    at Object.run (C:\SPA\shop-spa\node_modules\jest-cli\build\cli\index.js:147:18)
    at Object.<anonymous> (C:\SPA\shop-spa\node_modules\jest-cli\bin\jest.js:16:17)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)

Process finished with exit code 1

 

1 comment
Comment actions Permalink

doesn't look like the IDE issue

What is a result of running "C:\Program Files\nodejs\node.exe" C:\SPA\shop-spa\node_modules\jest\bin\jest.js --colors --verbose "--testNamePattern=^MyShopLinkLogo " --runTestsByPath C:\SPA\shop-spa\packages\web\src\components\base\Header\components\MyShopLinkLogo\test.spec.tsx in the system terminal (in the same directory as specified as a working dir in your run configuration)?

0

Please sign in to leave a comment.