Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
gorakong committed Jul 22, 2022
1 parent 9e01d85 commit 3df2a78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
13 changes: 8 additions & 5 deletions packages/core/integration-tests/test/react-refresh.js
Expand Up @@ -286,11 +286,14 @@ async function setup(entry) {
let bundleEvent: BuildEvent = await getNextBuild(b);
invariant(bundleEvent.type === 'buildSuccess');
let bundleGraph = bundleEvent.bundleGraph;
let dom = await JSDOM.JSDOM.fromURL('http:27.0.0.1:' + port + '/index.html', {
runScripts: 'dangerously',
resources: 'usable',
pretendToBeVisual: true,
});
let dom = await JSDOM.JSDOM.fromURL(
'http://127.0.0.1:' + port + '/index.html',
{
runScripts: 'dangerously',
resources: 'usable',
pretendToBeVisual: true,
},
);
window = dom.window;
await new Promise(res =>
window.document.addEventListener('load', () => {
Expand Down
5 changes: 1 addition & 4 deletions packages/core/integration-tests/test/scope-hoisting.js
Expand Up @@ -4,7 +4,6 @@ import nullthrows from 'nullthrows';
import {normalizePath} from '@parcel/utils';
import {createWorkerFarm} from '@parcel/core';
import {md} from '@parcel/diagnostic';
import {MemoryFS, OverlayFS} from '@parcel/fs';
import {
assertBundles,
assertDependencyWasExcluded,
Expand All @@ -14,7 +13,6 @@ import {
findAsset,
findDependency,
getNextBuild,
inputFS,
mergeParcelOptions,
outputFS,
overlayFS,
Expand Down Expand Up @@ -5585,8 +5583,7 @@ describe('scope hoisting', function () {
let workerFarm = createWorkerFarm({
maxConcurrentWorkers: 0,
});
let outputFS = new MemoryFS(workerFarm);
let overlayFS = new OverlayFS(outputFS, inputFS);

let slowFooFS = new Proxy(overlayFS, waitHandler('foo.js', 'bar.js'));

try {
Expand Down

0 comments on commit 3df2a78

Please sign in to comment.