Skip to content

Commit

Permalink
fix: move bb js test into dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Aug 18, 2023
1 parent db79369 commit 9ebf842
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ jobs:
- *setup_env
- run:
name: "Test"
command: cond_spot_run_test_script ./scripts/bin-test.sh bb.js
command: cond_spot_run_test_script ../scripts/bin-test.sh bb.js

barretenberg-benchmark-aggregator:
docker:
Expand Down
5 changes: 5 additions & 0 deletions circuits/cpp/barretenberg/ts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ RUN yarn --immutable
COPY . .
ENV DOCKER_ENV=true
RUN yarn formatting && yarn build:ts:browser && yarn build:ts:node

# Run bb.js binary tests
WORKDIR /usr/src/barretenberg/ts/bin-test
RUN ./bin-test.sh

CMD ["yarn", "test"]
2 changes: 1 addition & 1 deletion circuits/cpp/barretenberg/ts/bb.js-dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Now you can run bb.js-dev anywhere to execute latest code, no 'yarn build' required.
SCRIPT_PATH=$(dirname $(realpath $0))
export TS_NODE_PROJECT="$SCRIPT_PATH/tsconfig.node.json"
npx nodemon --ext '.ts' --watch 'src/**/*.ts' --exec "ts-node -r tsconfig-paths/register" $SCRIPT_PATH/src/main.ts $@
npx -y nodemon --ext '.ts' --watch 'src/**/*.ts' --exec "ts-node -r tsconfig-paths/register" $SCRIPT_PATH/src/main.ts $@

0 comments on commit 9ebf842

Please sign in to comment.