From 51bc18f8c4eb1b6247e764b5a7589c9444b47066 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Mon, 15 Mar 2021 15:17:17 +0800 Subject: [PATCH] chore: fix coverage command --- web3.js/.flowconfig | 16 ---------------- web3.js/package.json | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 web3.js/.flowconfig diff --git a/web3.js/.flowconfig b/web3.js/.flowconfig deleted file mode 100644 index 93de716b1f..0000000000 --- a/web3.js/.flowconfig +++ /dev/null @@ -1,16 +0,0 @@ -[ignore] -/node_modules/* -/lib/.* -/internals/.* - -[options] - -emoji=true -esproposal.class_instance_fields=enable -esproposal.class_static_fields=enable -esproposal.decorators=ignore -esproposal.export_star_as=enable -module.system.node.resolve_dirname=./src -module.use_strict=true -experimental.const_params=true -include_warnings=true diff --git a/web3.js/package.json b/web3.js/package.json index b778b36285..c8286a11a6 100644 --- a/web3.js/package.json +++ b/web3.js/package.json @@ -71,7 +71,7 @@ "pretty:fix": "prettier --write '{,{examples,src,test}/**/}*.{j,t}s'", "re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git", "test": "npm run build:fixtures && mocha -r ts-node/register './test/**/*.test.ts'", - "test:cover": "nyc --reporter=lcov mocha './test/**/*.test.ts'", + "test:cover": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' nyc --reporter=lcov mocha -r ts-node/register './test/**/*.test.ts'", "test:browser": "TEST_LIVE=1 npm run build:fixtures && npm run build:browser-test && mocha-headless-chrome -f http://localhost:8080/mocha.html --timeout 180000", "test:browser-with-server": "start-server-and-test 'http-server -p 8080' 8080 test:browser", "test:browser-with-test-validator": "start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health test:browser-with-server",