innet-jest
TypeScript icon, indicating that this package has built-in type declarations

1.3.7 • Public • Published

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:

// 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

Package Sidebar

Install

npm i innet-jest

Weekly Downloads

3

Version

1.3.7

License

MIT

Unpacked Size

8.19 kB

Total Files

9

Last publish

Collaborators

  • deight