jest-environment-shipchain

1.0.0 • Public • Published

jest-environment-shipchain

When including Google's Protocol Buffers in a project that uses Jest for testing, errors can occur during serialization/deserialization between Buffer <--> UInt8Array data. This issue has been described here: https://github.com/facebook/jest/issues/4422

One workaround is to extend jest-environment-node and include UInt8Array in the globals. This package does that environment extension in a similar fashion as jest-environment-aegir but allows ShipChain the ability to provide our own updates.

Usage

Install this package

npm install jest-environment-shipchain

Add this to the Jest configuration

module.exports = {
    testEnvironment: "shipchain",
    ...
}

Readme

Keywords

none

Package Sidebar

Install

npm i jest-environment-shipchain

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

13.3 kB

Total Files

5

Last publish

Collaborators

  • mlclay