innet-jest
v1.3.7
Published
Preset of Jest for innet
Downloads
20
Maintainers
Readme
innet-jest
This preset helps to work with Jest and innet.
innet-jest
based on innet-jsx and
includes TypeScript
and JSX
parser.
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:
// 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.