Skip to content

Tag: built-in

jest is failing to find `bota` and `atob`

Creating a jest test like: fails with however, node does define btoa as of node 16, and so the following: correctly outputs YWFh. How can I configure jest to get this test to pass? Clearly something is happening in the jest test runner to not execute in the current node environment, or otherwise is stripping …