chore: compile tests with the same compiler as the build itself (#24728)
This commit is contained in:
parent
2f62fb2031
commit
27a1757612
|
@ -1,6 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
// Configure Node.js tests
|
||||
module.exports = {
|
||||
require: ['@babel/register', 'esm'],
|
||||
};
|
File diff suppressed because it is too large
Load Diff
|
@ -50,8 +50,8 @@
|
|||
"pretty": "prettier --check '{,{src,test}/**/}*.{j,t}s'",
|
||||
"pretty:fix": "prettier --write '{,{src,test}/**/}*.{j,t}s'",
|
||||
"re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git",
|
||||
"test": "mocha -r ts-node/register './test/**/*.test.ts'",
|
||||
"test:cover": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' nyc --reporter=lcov mocha -r ts-node/register './test/**/*.test.ts'",
|
||||
"test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\" }' ts-mocha --require esm './test/**/*.test.ts'",
|
||||
"test:cover": "nyc --reporter=lcov npm run test",
|
||||
"test:live": "TEST_LIVE=1 npm run test",
|
||||
"test:live-with-test-validator": "start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health test:live"
|
||||
},
|
||||
|
@ -126,6 +126,7 @@
|
|||
"semantic-release": "^18.0.0",
|
||||
"sinon": "^12.0.0",
|
||||
"start-server-and-test": "^1.12.0",
|
||||
"ts-mocha": "^9.0.2",
|
||||
"ts-node": "^10.0.0",
|
||||
"tslib": "^2.1.0",
|
||||
"typedoc": "^0.22.2",
|
||||
|
|
2535
web3.js/yarn.lock
2535
web3.js/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue