-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run | Debug inside docker container #199
Comments
Hi, same problem here. Any news on resolving that? |
Also looking for a solution here |
just merged #306 check version 0.4.66 which enables you to define a relative project path using using this method you would be able to produce a relative path like please let us know if this solves your issue. |
Background
With In either case, when I open a test in VS Code on my host machine and click 'run' on a test, it generates the following command.
This command fails as the test file is found within Solutions Is there any way to configure jestrunner to 'alter' the path of the test I run (and associated jestconfig) from being a host-defined path to a 'container path'? |
Also an issue for me, since our team setup runs all the tests inside docker. |
Would just like to bump this, it would be great for us if we could do this. Appreciate the extension either way though! :) |
So for this use case #199 (comment), we are trying to fix the path of the test file, right?
This is the test file path: But the real test file path we want is something like this? Would something like #335 meet this requirement? It seems like it would be nice to have a built-in way to support a path mapping or a transformation of the test file path for these use cases 👍 Also, |
Hey there,
First of all I would like to thank you for great plugin! 🥇
In our development team we are working in docker environment, and all our tests runs inside container as well.
Ability to override file path
I just wanna make sure that my approach is correct:
Since we are running tests inside container we use
jestrunner.jestCommand
to provide custom command:As result we are getting following command been executed:
The problem that file path is incorrect, since in
docker-compose
we bind volume project root to/app
inside container, so instead of/home/ec2-user/company/webapi/tests/api/controllers/controller.test.ts
we should runtests/api/controllers/controller.test.ts
.Our approach is to write custom script as it was suggested here and override file path, is there any configuration that we can use to achieve this functionality out of the box, or use of script as it was suggested is only valid solution
Debug inside docker container
Is there any configuration that can help us to achieve debugging inside docker container? As we saw
jestrunner.jestCommand
have no affect on debugging process, so we are wonder if there is any type of customization that we can achieve as we did withRun
.The text was updated successfully, but these errors were encountered: