vscode-jest-runner icon indicating copy to clipboard operation
vscode-jest-runner copied to clipboard

feat: Add workspace root substitution for docker containers

Open domsleee opened this issue 9 months ago • 2 comments

Suggested feature for #199

It is a proof of concept of a way of transforming the test file path, that could be used in a docker container

For example, instead of this:

node 'node_modules/.bin/jest' '/Users/user/git/vscode-jest-runner/examples.test.ts' -t 'Example'

With testPathSubstitution as /app/container (i.e. a replacement of the workspace root):

node 'node_modules/.bin/jest' '/app/container/examples.test.ts' -t 'Example'

With testPathSubstitution as ./ (i.e. relative to workspace root):

node 'node_modules/.bin/jest' './examples.test.ts' -t 'Example'

domsleee avatar Oct 14 '23 13:10 domsleee

Let me know when you want to merge this because it's still in draft

firsttris avatar Feb 20 '24 09:02 firsttris

you also have to permission to merge on your own.

firsttris avatar Feb 20 '24 09:02 firsttris