Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 5790271

Browse files
committedJun 28, 2022
test: compile web3.js tests in such a way that you can use es2020+ syntax without crashing Mocha
1 parent 5a8625a commit 5790271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"pretty": "prettier --check '{,{src,test}/**/}*.{j,t}s'",
5151
"pretty:fix": "prettier --write '{,{src,test}/**/}*.{j,t}s'",
5252
"re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git",
53-
"test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\" }' ts-mocha --require esm './test/**/*.test.ts'",
53+
"test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\", \"target\": \"es2019\" }' ts-mocha --require esm './test/**/*.test.ts'",
5454
"test:cover": "nyc --reporter=lcov npm run test",
5555
"test:live": "TEST_LIVE=1 npm run test",
5656
"test:live-with-test-validator": "start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health test:live"

0 commit comments

Comments
 (0)
This repository has been archived.