Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit dbd7248

Browse files
committed
Merge branch 'master' of github.com:developit/jsdom-worker
2 parents e5f3794 + 3428d45 commit dbd7248

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<p align="center">
2-
<img src="https://d1j8pt39hxlh3d.cloudfront.net/development/emojione/2.2/513/2248.svg" width="256">
3-
</p>
4-
<h1 align="center">jsdom-worker</h1>
5-
<p align="center"><em>Lets you use Web Workers in Jest!</em></p>
6-
<p align="center">
7-
<a href="https://www.npmjs.org/package/jsdom-worker"><img src="https://img.shields.io/npm/v/jsdom-worker.svg?style=flat" alt="npm"></a> <a href="https://travis-ci.org/developit/jsdom-worker"><img src="https://travis-ci.org/developit/jsdom-worker.svg?branch=master" alt="travis"></a>
2+
<img src="https://i.imgur.com/s9rO8Jh.jpg" width="1100">
83
</p>
94

10-
---
5+
6+
# jsdom-worker
7+
8+
> _Lets you use Web Workers in Jest!_
119
1210
This is an experimental implementation of the Web Worker API (specifically Dedicated Worker) for JSDOM.
1311

@@ -17,6 +15,9 @@ It supports both "inline" _(created via Blob)_ and standard _(loaded via URL)_ w
1715

1816
> **Hot Take:** this module likely works in the browser, where it could act as a simple inline worker "poorlyfill".
1917
18+
<a href="https://www.npmjs.org/package/jsdom-worker"><img src="https://img.shields.io/npm/v/jsdom-worker.svg?style=flat" alt="npm"></a> <a href="https://travis-ci.org/developit/jsdom-worker"><img src="https://travis-ci.org/developit/jsdom-worker.svg?branch=master" alt="travis"></a>
19+
20+
2021
## Why?
2122

2223
Jest uses a JSDOM environment by default, which means it doesn't support Workers. This means it is impossible to test code that requires both NodeJS functionality _and_ Web Workers. `jsdom-worker` implements enough of the Worker spec that it is now possible to do so.

0 commit comments

Comments
 (0)