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 532309d
Showing 1 changed file with 8 additions and 5 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

0 comments on commit 532309d

Please sign in to comment.