jest-preset-hops

15.2.1 • Public • Published

Hops Jest Preset

npm

Please see the main Hops Readme for general information and a Getting Started Guide.

A Jest preset that makes it easier for Hops powered apps to use Jest.

It ensures that Babel works correctly out of the box and that requiring files such as images does not produce errors. identity-obj-proxy is used to make working with CSS modules easier in tests.

Installation

npm install --save-dev jest-preset-hops jest babel-jest ts-jest

Usage

Add jest-preset-hops as preset to your Jest config. This can for example be done by adding it to your package.json.

{
  "jest": {
    "preset": "jest-preset-hops"
  }
}

Feel free to extend the "jest"-configuration object along the way.

For running tests, use the Jest CLI.

/jest-preset-hops/

    Package Sidebar

    Install

    npm i jest-preset-hops

    Weekly Downloads

    150

    Version

    15.2.1

    License

    MIT

    Unpacked Size

    21 kB

    Total Files

    21

    Last publish

    Collaborators

    • robertkowalski
    • zaubernerd
    • jhiode
    • knisterpeter
    • hops-release
    • dmbch
    • aithir
    • robin-drexler