innet-jest

Preset of Jest for innet

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
innet-jest
1.3.79 months ago3 years agoMinified + gzip package size for innet-jest in KB

Readme

innet-jest
NPM downloads license
This preset helps to work with Jest and innet.
innet-jest based on innet-jsx and includes TypeScript and JSX parser.
CHANGELOG
stars watchers

Install

Install the package with npm
npm i -D innet-jest
or yarn
yarn add -D innet-jest
and specify preset in your Jest configuration:
{
  "preset": "innet-jest"
}

Usage

Write the test with JSX syntax: ```typescript jsx // test.spec.tsx or jsx
describe('innet', () => { test('JSX works', () => {
expect(<div />).toEqual({type: 'div'})
}) }) ```

Issues

If you find a bug or have a suggestion, please file an issue on GitHub.
issues