Closed TvrtkoM closed 1 year ago
Investigated so far:
Jest (since we already use it for unit testing)
ReferneceError: TextDecoder is not defined
Main issues is in uint8arrays dependency that seem to originate from polkadotjs dependencies / sdk and it is related to ipfs-http-client
.../.../zeitgeist/ui/node_modules/multihashes/node_modules/uint8arrays/esm/src/to-string.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import bases from './util/bases.js';
Cypress
cy.intercept
Another library to consider is https://storybook.js.org/
Look into replacing ipfs-http-client
with something else / our own code since it continues to give us issues.
Write a couple of tests for some components of small to medium complexity, and come up with a plan for refactoring other components so they're more easy to test