firsttris / vscode-jest-runner

Simple way to run or debug one or more tests from context menu, codelens or command plalette
https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner
MIT License
264 stars 124 forks source link

It possible to define node with --openssl-legacy-provider parameter before run test? #316

Closed tonmanna closed 9 months ago

tonmanna commented 1 year ago

My application still require --openssl-legacy-provider for ignore the legacy provider mode.

domsleee commented 1 year ago

Could try jestrunner.jestCommand, similar to this: https://github.com/firsttris/vscode-jest-runner/issues/320#issuecomment-1649431451

Maybe this?

"jestrunner.jestCommand": "export NODE_OPTIONS=--openssl-legacy-provider && node node_modules/jest/bin/jest.js",

Or this?

"jestrunner.jestCommand": "NODE_OPTIONS=--openssl-legacy-provider node node_modules/jest/bin/jest.js",
cdaringe commented 9 months ago

NODE_OPTIONS is a great solve.