From 86cf2ad51d09e88c13bdd0ba0e8a3a2b23b9d395 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Fri, 24 May 2024 11:34:04 -0600 Subject: [PATCH] fix(test): add dockerfile for running tests in certain node environments --- Dockerfile.test | 7 +++++++ package.json | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Dockerfile.test diff --git a/Dockerfile.test b/Dockerfile.test new file mode 100644 index 00000000..71d8d0e4 --- /dev/null +++ b/Dockerfile.test @@ -0,0 +1,7 @@ +FROM node:22-alpine as build +WORKDIR /app + +COPY . . + +RUN yarn clean && yarn install +RUN yarn test:integration:local diff --git a/package.json b/package.json index 7d7c49d3..2f158ee1 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "test": "yarn test:unit && yarn test:integration", "test:unit": "yarn clean && jest --config=jest.config.mjs", "test:integration": "yarn clean && docker compose up -d && jest --config=jest.integration.config.mjs --runInBand && docker compose down -v", + "test:integration:local": "yarn clean && jest --config=jest.integration.config.mjs --runInBand", "prepare": "husky install", "example:esm": "cd examples/esm && yarn && node index.mjs", "example:cjs": "cd examples/cjs && yarn && node index.cjs", @@ -115,7 +116,7 @@ }, "dependencies": { "arbundles": "0.11.0", - "arweave": "1.15.1", + "arweave": "1.14.4", "axios": "1.4.0", "bunyan": "^1.8.15", "warp-arbundles": "^1.0.4",