running tests inside a container?


#1

Is anyone doing CodeMirror development inside a docker container?
I was able to get everything setup and run the tests to get an “All passed” message.
However, when I add a failing test and run npm test again, it still returns “All passed”!

I’ve been able to get the tests running correctly on two different systems using “normal” (non-containerized) node.js installs.
See below for the contents of my Dockerfile, I’ve tried both the node:10-slim and the node:10 base images.

Any ideas or requests for more info would be appreciated.

FROM node:10-slim

EXPOSE 3000

RUN npm install -g nodemon
# Install PhantomJS dependencies
RUN apt-get update && apt-get install --no-install-recommends -y \
    bzip2 \
	libfontconfig1 \
	fontconfig \
	libfontconfig1-dev \
	libfreetype6-dev \
	&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Don't run `npm install` or `npm run build` steps here.
# After running container, will need to `docker exec -it` into it and `npm install` then
# Run nodemon to have a long-lived process to keep container running
CMD [ "nodemon" ]