Skip to content

Commit

Permalink
test: re-add needed changes to conformance test
Browse files Browse the repository at this point in the history
  • Loading branch information
pmmmwh committed Jun 22, 2020
1 parent 5d71a51 commit 94b3be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/conformance/ReactRefreshRequire.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,14 +633,14 @@ it('can continue hot updates after module-level errors with module.exports', asy
});

// https://github.com/facebook/metro/blob/c083da2a9465ef53f10ded04bb7c0b748c8b90cb/packages/metro/src/lib/polyfills/__tests__/require-test.js#L2051-L2162
it('can continue hot updates after module-level errors with ES6 exports', async () => {
it.only('can continue hot updates after module-level errors with ES6 exports', async () => {
const [session] = await createSandbox();

await session.write('root.js', `export default function Noop() { return null; };`);
await session.write('index.js', `import Root from './root'; Root();`);
await session.reload();

await session.write('foo.js', `import './bar'; window.log('init FooV1');`);
await session.write('foo.js', `import Bar from './bar'; Bar(); window.log('init FooV1');`);
await session.write(
'bar.js',
// This module accepts itself
Expand Down

0 comments on commit 94b3be3

Please sign in to comment.