From 255c84b8aa87292f945d1295c89aea58b4b96cf8 Mon Sep 17 00:00:00 2001 From: Jay Colson Date: Tue, 28 Sep 2021 18:36:40 +0100 Subject: [PATCH] think this will work around the linux nodejs bug https://github.com/nodejs/node/issues/35889 --- Dockerfile | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d044413..9a7f25f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,9 @@ FROM base as test RUN apt-get install -y git git-lfs python3 python-pip && pip install pre-commit RUN npm ci -RUN npm run test --verbose +RUN npm run test -- --verbose --testPathIgnorePatterns roll.test.js +# workaround for linux node bug --> https://github.com/nodejs/node/issues/35889 +RUN npm run test roll.test.js -- --verbose # Start me! # CMD ["node", "index.js"] diff --git a/package.json b/package.json index 987ecad..4f873b4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "test": "NODE_OPTIONS=--experimental-vm-modules jest --coverage", - "dockertest": "docker build --target test .", + "dockertest": "docker build --progress plain --target test .", "preinstall": "git lfs update --force && pre-commit install -t pre-commit -t pre-push", "preinstall_old": "npx npm-force-resolutions && pre-commit install -t pre-commit -t pre-push" },