jest-editor-support

A module for handling editor to jest integration

Showing:

Popularity

Downloads/wk

1.7K

GitHub Stars

21

Maintenance

Last Commit

3mos ago

Contributors

15

Package

Dependencies

6

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

jest-editor-support

Build Status Coverage Status npm version

The engine that allows editors to build on top of Jest.

Usage

This is only useful if you are interested in building an editor integration for Jest.

API

parse(   
  filePath: string,   
  serializedData?: string,   
  strictMode: boolean = false,     
)

Parse is a static Jest parser which uses Babel 7 and supports js,jsx,mjs,ts,tsx files.

Supported ECMAScript proposals

  • filePath = Path to the file you want to parse.
  • serializedData = Serialized data, will be used instead of the filePath if available (optional).
  • strictMode = If this option is activated the parser throws an exception if the filetype is not detected, defaults to false.

Note

Since version 18.2.0 TypeScript is now a peer dependency. If you don't need to handle .tsx files then you can safely ignore the warning during installation.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100