innet-jest
This preset helps to work with Jest and innet.
innet-jest
based on innet-jsx and
includes TypeScript
and JSX
parser.CHANGELOG
Install
Install the package with npmnpm 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 withJSX
syntax:
```typescript jsx
// test.spec.tsx or jsxdescribe('innet', () => { test('JSX works', () => {
expect(<div />).toEqual({type: 'div'})
})
})
```