Fix tests failing on Windows (#1052)

Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1052

Fixed tests failing on Windows because jest auto-mocks works differently there

Reviewed By: passy

Differential Revision: D21237618

fbshipit-source-id: 31c7e92b7f8ae84c1e65fd37428204452b3f1b00
This commit is contained in:
Anton Nikolaev
2020-04-27 07:15:08 -07:00
committed by Facebook GitHub Bot
parent fcb89b94b5
commit 773b0b7f67
4 changed files with 22 additions and 5 deletions

View File

@@ -43,6 +43,7 @@ export async function generatePluginEntryPoints() {
.map((x) => ` '${x.name}': require('${x.name}')`)
.join(',\n');
const generatedIndex = `
/* eslint-disable */
// THIS FILE IS AUTO-GENERATED by function "generatePluginEntryPoints" in "build-utils.ts".
export default {\n${pluginRequres}\n} as any
`;