Anna Lorenzi
11/17/2023, 6:22 PMFROM node:19
RUN apt-get update -y && \
apt-get install -y git g++ python3 build-essential && \
rm -rf /var/lib/apt/lists/*
RUN apt-get install -y bash
CMD ["bash"]
To run this container, I create a volume to acces the react app code from within container:
wsl docker run -it -v /mnt/c/source/my-project:/src my-project-test:my-project-test
After that, I attempt to run tests with Jest inside the container:
jest --testPathPattern "/src/services" --env=jsdom
However, it is not work. With debian and ubuntu the bash stays frozen for hours (see image bellow).
Could someone help me, please?Anna Lorenzi
11/17/2023, 6:26 PMVittorio Guerriero
11/17/2023, 8:23 PMMatt (pactflow.io / pact-js / pact-go)