Skip to content

Commit

Permalink
Polyfill seems to be needed for some unit tests...
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro committed Mar 12, 2022
1 parent 5c6543f commit 86cef40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"sass": "^1.45.1",
"serve": "^11.3.2",
"start-server-and-test": "^1.11.0",
"text-encoding-polyfill": "^0.6.7",
"typechain": "^5.0.0",
"typescript": "^4.4.3",
"web3-react-abstract-connector": "npm:@web3-react/abstract-connector@^6.0.7",
Expand Down
1 change: 1 addition & 0 deletions src/polyfills.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'polyfill-object.fromentries'
import 'text-encoding-polyfill'

import flat from 'array.prototype.flat'
import flatMap from 'array.prototype.flatmap'
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6938,7 +6938,7 @@
dependencies:
"@web3-react/abstract-connector" "^6.0.7"
"@web3-react/types" "^6.0.7"
walletlink "^2.4.7"
walletlink "^2.2.6"

"@webassemblyjs/[email protected]":
version "1.9.0"
Expand Down Expand Up @@ -24405,6 +24405,11 @@ test-value@^2.1.0:
array-back "^1.0.3"
typical "^2.6.0"

text-encoding-polyfill@^0.6.7:
version "0.6.7"
resolved "https://registry.yarnpkg.com/text-encoding-polyfill/-/text-encoding-polyfill-0.6.7.tgz#4d27de0153e4c86eb2631ffd74c2f3f57969a9ec"
integrity sha512-/DZ1XJqhbqRkCop6s9ZFu8JrFRwmVuHg4quIRm+ziFkR3N3ec6ck6yBvJ1GYeEQZhLVwRW0rZE+C3SSJpy0RTg==

[email protected], text-table@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
Expand Down

0 comments on commit 86cef40

Please sign in to comment.