diff --git a/packages/analyzer/src/typescript-react-analyzer/slot-analyzer.test.ts b/packages/analyzer/src/typescript-react-analyzer/slot-analyzer.test.ts index f1d8b14d8..994bd43b3 100644 --- a/packages/analyzer/src/typescript-react-analyzer/slot-analyzer.test.ts +++ b/packages/analyzer/src/typescript-react-analyzer/slot-analyzer.test.ts @@ -3,7 +3,6 @@ import { getDefaultCode, getCommentValue, analyzeSlots } from './slot-analzyer'; import * as TypescriptUtils from '../typescript-utils'; import * as TestUtils from '../test-utils'; import { Project } from 'ts-simple-ast'; -import { exec } from 'child_process'; const fixtures = require('fixturez')(__dirname); diff --git a/packages/analyzer/src/typescript-react-analyzer/slot-default-analyzer.test.ts b/packages/analyzer/src/typescript-react-analyzer/slot-default-analyzer.test.ts index 441d4c2e7..ffd0dee08 100644 --- a/packages/analyzer/src/typescript-react-analyzer/slot-default-analyzer.test.ts +++ b/packages/analyzer/src/typescript-react-analyzer/slot-default-analyzer.test.ts @@ -2,16 +2,14 @@ import * as tsa from 'ts-simple-ast'; import { analyzeSlotDefault, getExportSpecifier } from './slot-default-analyzer'; import * as uuid from 'uuid'; -interface TestContext { - project: tsa.Project; - pkgPath: string; - path: string; -} - jest.mock('find-pkg', () => ({ sync: (input: string) => '/package.json' })); +jest.mock('read-pkg', () => ({ + sync: () => ({ name: 'name ' }) +})); + jest.mock('../react-utils/find-react-component-type', () => ({ findReactComponentType: () => true }));