Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI tests broken following Polkadot update. #1562

Open
tomjeatt opened this issue Sep 13, 2023 · 0 comments
Open

UI tests broken following Polkadot update. #1562

tomjeatt opened this issue Sep 13, 2023 · 0 comments
Assignees

Comments

@tomjeatt
Copy link
Collaborator

Our UI tests have stopped running following the changes to support the Polkadot 10.9.1 upgrade. This is specifically related to the polkadot update itself, not the lib or bridge (i.e. I tested by using the previous version of the UI changing only @polkadot/api
to 10.9.1—the tests failed).

The cause of the problem seems to be that jest can't find polkadot's x-textdecoder dependency:

 FAIL  src/test/pages/Loans/index.test.tsx
  ● Test suite failed to run

    ENOENT: no such file or directory, open 'node:util'

      at Runtime.readFile (node_modules/jest-runtime/build/index.js:1987:21)
      at Object.<anonymous> (node_modules/@polkadot/x-textdecoder/cjs/node.js:5:45)

This error is reported for every test suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New 🆕
Development

No branches or pull requests

1 participant