Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/havunen/jest-environment-linkedom
https://github.com/havunen/jest-environment-linkedom
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/havunen/jest-environment-linkedom
- Owner: Havunen
- Created: 2023-10-08T15:04:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T15:01:07.000Z (about 1 year ago)
- Last Synced: 2024-10-11T07:45:08.440Z (about 1 month ago)
- Language: TypeScript
- Size: 102 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jest-environment-linkedom
`jest-environment-linkedom` is jest test environment based on `linkedom`.
## Goal
The goal of this plugin is to provide as fast browser like runtime for jest as possible. Unlike `jsdom` this plugin does not try to provide standards compliant HTML implementation. Instead this plugin focuses on low memory footprint, fast runtime execution and comprehensive mocked HTML APIs where testing can take place by mocking the required methods.
## Getting started
```
npm install --save-dev jest-environment-linkedom
```jest.config
```js
export default {
testEnvironment: "linkedom",
}
```## Versioning
This package tries to match the major version with jest major version.
Always install the same major version of jest and this plugin.
First supported Jest version is 29