innet-jest
v2.0.0
Published
Preset of Jest for innet
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-jestor yarn
yarn add -D innet-jestand 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.
