Skip to content

Commit

Permalink
fix(test): fix local unit tests behind proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
mgermerie authored and Desplandis committed Jan 8, 2025
1 parent fe189be commit 9b9d52a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
"sinon": "^19.0.2",
"three": "^0.168.0",
"typescript": "^5.6.2",
"undici": "^7.2.0",
"webgl-mock": "^0.1.7",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4",
Expand Down
3 changes: 3 additions & 0 deletions test/unit/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { Camera } from 'three';
import { DOMParser } from '@xmldom/xmldom';
import threads from 'worker_threads';
import 'webgl-mock';
import { EnvHttpProxyAgent, setGlobalDispatcher } from 'undici';

setGlobalDispatcher(new EnvHttpProxyAgent());

const WORKER = Symbol('worker');

Expand Down

0 comments on commit 9b9d52a

Please sign in to comment.