Skip to content

Commit

Permalink
fix(test): add dockerfile for running tests in certain node environments
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed May 24, 2024
1 parent f1bd196 commit 86cf2ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:22-alpine as build
WORKDIR /app

COPY . .

RUN yarn clean && yarn install
RUN yarn test:integration:local
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 86cf2ad

Please sign in to comment.