You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the sdk should support also jsdom as a testing environment
frontend:test: TypeError: text.normalize is not a function
frontend:test: β― Object.encode ../../../vechain-dapp-kit/node_modules/@vechain/sdk-core/dist/index.js:3452:12
frontend:test: 3450| encode: function(text) {
frontend:test: 3451| return TEXT_ENCODER.encode(
frontend:test: 3452| text.normalize(NORMALIZATION_FORM_CANONICAL_COMPOSITION)
frontend:test: | ^
frontend:test: 3453| );
frontend:test: 3454| }
it works correctly with happy-dom instead
Reproduction URL
No response
Reproduction steps
1. Create a vitest frontend test that renders something, using SDK and jsdom
2. you will get this error when you try to run it:
frontend:test: TypeError: text.normalize is not a function
frontend:test: β― Object.encode ../../../vechain-dapp-kit/node_modules/@vechain/sdk-core/dist/index.js:3452:12
frontend:test: 3450| encode: function(text) {
frontend:test: 3451|return TEXT_ENCODER.encode(
frontend:test: 3452| text.normalize(NORMALIZATION_FORM_CANONICAL_COMPOSITION)
frontend:test: | ^
frontend:test: 3453| );
frontend:test: 3454| }
### Screenshots
```bash
![DESCRIPTION](LINK.png)
Logs
No response
OS
No response
The text was updated successfully, but these errors were encountered:
hi @davidecarpini I can see in the paths that you were working on the dapp-kit project. since it is open source, would you mind sharing a branch with this testing code so we reproduce the error from there (if it is not too inconvenient ofc)? thanks in advance!
Description
the sdk should support also jsdom as a testing environment
it works correctly with happy-dom instead
Reproduction URL
No response
Reproduction steps
Logs
No response
OS
No response
The text was updated successfully, but these errors were encountered: