https://github.com/d8corp/innet-jest
Preset of Jest for innet
https://github.com/d8corp/innet-jest
Last synced: 4 months ago
JSON representation
Preset of Jest for innet
- Host: GitHub
- URL: https://github.com/d8corp/innet-jest
- Owner: d8corp
- License: mit
- Created: 2021-06-20T11:49:02.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T07:38:53.000Z (almost 3 years ago)
- Last Synced: 2025-04-03T13:13:53.095Z (over 1 year ago)
- Language: JavaScript
- Size: 1.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# innet-jest
[](https://www.npmjs.com/package/innet-jest)
[](https://www.npmtrends.com/innet-jest)
[](https://github.com/d8corp/innet-jest/blob/master/LICENSE)
This preset helps to work with [Jest](https://www.npmjs.com/package/jest) and [innet](https://www.npmjs.com/package/innet).
`innet-jest` based on [innet-jsx](https://www.npmjs.com/package/innet-jsx) and
includes `TypeScript` and `JSX` parser.
[CHANGELOG](https://github.com/d8corp/innet-jest/blob/master/CHANGELOG.md)
[](https://github.com/d8corp/innet-jest/stargazers)
[](https://github.com/d8corp/innet-jest/watchers)
### Install
Install the package with npm
```bash
npm i -D innet-jest
```
or yarn
```bash
yarn add -D innet-jest
```
and specify preset in your [Jest configuration](https://jestjs.io/docs/configuration):
```json
{
"preset": "innet-jest"
}
```
### Usage
Write the test with `JSX` syntax:
```typescript jsx
// test.spec.tsx or jsx
describe('innet', () => {
test('JSX works', () => {
expect(
).toEqual({type: 'div'})
})
})
```
### Issues
If you find a bug or have a suggestion, please file an issue on [GitHub](https://github.com/d8corp/innet-jest/issues).
[](https://github.com/d8corp/innet-jest/issues)