I have some tests that I’m currently running with
docker run /bin/bash -c "yarn jest --silent". I noticed that in garden both of these would run all the tests:
tests: - name: modules command: ['yarn'] args: - jest - --silent
tests: - name: modules args: - yarn - jest - --silent
However, jest’s behavior in both of these cases are different from what I currently have. Right now jest would print out something like this for each file it ran:
But with the ways above it doesn’t. After some experiments it seems like this gets me the behavior I want:
tests: - name: modules command: [/bin/bash, -c, "yarn jest --silent"]
But if I move any of the args to
args, it does not work. If I only have
command and the rest in
args, the test would just run
yarn install and exit right away. So I’m pretty confused what’s causing the differences here.
Thanks in advance!