diff --git a/.circleci/config.yml b/.circleci/config.yml index f68d76f08..fdb28d2de 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,7 +46,7 @@ jobs: key: 10 - setup_solc - run: yarn build - - run: yarn test + - run: yarn test:others test_node_11: docker: @@ -58,7 +58,55 @@ jobs: key: 11 - setup_solc - run: yarn build - - run: yarn test + - run: yarn test:others + + test_node_12: + docker: + - image: circleci/node:12.18 + steps: + - checkout + - setup_remote_docker + - install_dependencies: + key: 12 + - setup_solc + - run: yarn build + - run: yarn test:others + + test_jest_10: + docker: + - image: circleci/node:10.18 + steps: + - checkout + - setup_remote_docker + - install_dependencies: + key: 10 + - setup_solc + - run: yarn build + - run: yarn test:jest + + test_jest_11: + docker: + - image: circleci/node:11.15 + steps: + - checkout + - setup_remote_docker + - install_dependencies: + key: 11 + - setup_solc + - run: yarn build + - run: yarn test:jest + + test_jest_12: + docker: + - image: circleci/node:12.18 + steps: + - checkout + - setup_remote_docker + - install_dependencies: + key: 12 + - setup_solc + - run: yarn build + - run: yarn test:jest example_mock_contracts: working_directory: ~/project/examples/mock-contracts @@ -150,6 +198,10 @@ workflows: - lint - test_node_10 - test_node_11 + - test_node_12 + - test_jest_10 + - test_jest_11 + - test_jest_12 - example_mock_contracts - example_change_balance - example_basic diff --git a/package.json b/package.json index e6a3e35bf..3e0513a25 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "postinstall": "patch-package", "lint": "wsrun -c lint", "build": "wsrun -te -c build", - "test": "wsrun -c test" + "test": "wsrun -c test", + "test:others": "wsrun -x @ethereum-waffle/jest -c test", + "test:jest": "wsrun -p @ethereum-waffle/jest -c test" }, "devDependencies": { "wsrun": "^5.2.0"