Skip to content

Commit

Permalink
Try worker threads
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Oct 3, 2023
1 parent 79e3e01 commit 195ce82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
node-version: '20.x'
- run: npm ci
- run: npm run build:test
- run: npm test
- run: npm test -- --workerThreads
8 changes: 0 additions & 8 deletions tests/setup.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import { Buffer } from 'buffer';
import fetch, { Headers, Request, Response } from 'node-fetch';

if (!globalThis.fetch) {
(globalThis as any).fetch = fetch;
(globalThis as any).Headers = Headers;
(globalThis as any).Request = Request;
(globalThis as any).Response = Response;
}

if (typeof TextDecoder !== 'undefined') {
// Monkey patch Text Decoder to workaround https://github.com/vercel/edge-runtime/issues/62
Expand Down

0 comments on commit 195ce82

Please sign in to comment.