Skip to content

Commit

Permalink
Add AbortController polyfill to test so that test works in Node 14
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Dec 3, 2022
1 parent 7332638 commit fa6e0fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions web3.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"mocha": "^10.1.0",
"mockttp": "^2.0.1",
"mz": "^2.7.0",
"node-abort-controller": "^3.0.1",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "^2.3.0",
Expand Down
1 change: 1 addition & 0 deletions web3.js/test/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {Buffer} from 'buffer';
import * as splToken from '@solana/spl-token';
import {expect, use} from 'chai';
import chaiAsPromised from 'chai-as-promised';
import {AbortController} from 'node-abort-controller';
import {mock, useFakeTimers, SinonFakeTimers} from 'sinon';
import sinonChai from 'sinon-chai';

Expand Down
5 changes: 5 additions & 0 deletions web3.js/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4998,6 +4998,11 @@ no-case@^3.0.4:
lower-case "^2.0.2"
tslib "^2.0.3"

node-abort-controller@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/node-abort-controller/-/node-abort-controller-3.0.1.tgz#f91fa50b1dee3f909afabb7e261b1e1d6b0cb74e"
integrity sha512-/ujIVxthRs+7q6hsdjHMaj8hRG9NuWmwrz+JdRwZ14jdFoKSkm+vDsCbF9PLpnSqjaWQJuTmVtcWHNLr+vrOFw==

node-addon-api@^2.0.0:
version "2.0.2"
resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz"
Expand Down

0 comments on commit fa6e0fe

Please sign in to comment.