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
// TextEncoder is used by viem, supported by Browsers for over five years and node since v11 as a global export: https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder
// `js-dom` doesn't set some of the globals: https://github.com/jestjs/jest/blob/v29.7.0/packages/jest-environment-jsdom/src/index.ts
// for reference, node does: https://github.com/jestjs/jest/blob/4e56991693da7cd4c3730dc3579a1dd1403ee630/packages/jest-environment-node/src/index.ts#L40
Object.assign(global, { TextEncoder })
// jest-dom adds custom jest matchers for asserting on DOM nodes.