edge-jest

0.2.1-alpha.6 • Public • Published

Centralized Jest Configuration

Features

  • Supports CSS Modules using identity-obj-proxy.
  • Mocks all asset file requirements for e.g. images, fonts, ...
  • Includes a mock for the native fetch() method.
  • Polyfills requestAnimationFrame() which is required by React v16.

Excludes for Coverage

  • Excludes typical Edge Platform based application glue code files e.g. Application.js and State.js.
  • Excludes Webpack and Prepublish entry points.
  • Excludes Storybook stories following the .story.js naming convention.
  • Excludes Jest tests following the .test.js naming convention.

Usage

Install via NPM:

npm install --save-dev edge-jest

Add your local Jest config as a jest.config.js file - Config inside your package.json is not supported!

/* eslint-disable */
const config = require("edge-jest")
 
// Modify/Extend the config object here
 
module.exports = config

Jest is automatically looking up the configuration file. No need for passing any further information.

License

Apache License Version 2.0, January 2004

Copyright

Sebastian Software GmbH Logo

Copyright 2017-2018
Sebastian Software GmbH

Readme

Keywords

none

Package Sidebar

Install

npm i edge-jest

Weekly Downloads

3

Version

0.2.1-alpha.6

License

Apache-2.0

Unpacked Size

4.89 kB

Total Files

10

Last publish

Collaborators

  • swernerx