Fix for tests after call to "build-plugins"

Summary: After calling "bundle-all-plugins" locally, "yarn test" is failing with obscure message, because some tests are trying to import built bundles instead of "index.tsx". This diff fixes that.

Reviewed By: passy

Differential Revision: D26986246

fbshipit-source-id: cffe988dc642e2c5d2b2028581cd162350186e0c
This commit is contained in:
Anton Nikolaev
2021-03-11 17:05:03 -08:00
committed by Facebook GitHub Bot
parent a6262cf3f0
commit b2776f1c36
2 changed files with 4 additions and 4 deletions

View File

@@ -8,14 +8,14 @@
*/
import {BaseDevice} from 'flipper';
import CrashReporterPlugin from '..';
import type {PersistedState, Crash} from '..';
import CrashReporterPlugin from '../index';
import type {PersistedState, Crash} from '../index';
import {
parseCrashLog,
getNewPersistedStateFromCrashLog,
parsePath,
shouldShowCrashNotification,
} from '..';
} from '../index';
import {getPluginKey, getPersistedState} from 'flipper';
function setDefaultPersistedState(defaultState: PersistedState) {

View File

@@ -9,7 +9,7 @@
import {combineBase64Chunks} from '../chunks';
import {TestUtils} from 'flipper-plugin';
import * as NetworkPlugin from '..';
import * as NetworkPlugin from '../index';
test('Test assembling base64 chunks', () => {
const message = 'wassup john?';