mirror of https://github.com/status-im/metro.git
Revert D5424282, D5433438, D5424365, D5417982 to unbreak React Native
fbshipit-source-id: 0b32966feabeff6b785dae52a173854e6805f150
This commit is contained in:
parent
635e41027c
commit
e4b94a4d77
|
@ -5294,10 +5294,7 @@ describe('DependencyGraph', function() {
|
||||||
await getOrderedDependenciesAsJSON(dgraph, root + '/index.js');
|
await getOrderedDependenciesAsJSON(dgraph, root + '/index.js');
|
||||||
throw new Error('expected `getOrderedDependenciesAsJSON` to fail');
|
throw new Error('expected `getOrderedDependenciesAsJSON` to fail');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const {
|
if (error.type !== 'UnableToResolveError') {
|
||||||
DuplicateHasteCandidatesError,
|
|
||||||
} = require('jest-haste-map/build/module_map');
|
|
||||||
if (!(error instanceof DuplicateHasteCandidatesError)) {
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
expect(console.warn).toBeCalled();
|
expect(console.warn).toBeCalled();
|
||||||
|
|
Loading…
Reference in New Issue