Skip to content

Commit

Permalink
Update imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Feb 15, 2024
1 parent badb0ba commit 8ca78b7
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import * as ts from 'typescript';
import { expect } from 'chai';
import glob from 'fast-glob';
import prettier from 'prettier';
import {
TypeScriptProject,
createTypeScriptProjectBuilder,
} from '@mui-internal/api-docs-builder/utils/createTypeScriptProject';
import { TypeScriptProject, createTypeScriptProjectBuilder } from '@mui-internal/docs-utils';
import { generatePropTypes } from '../src/generatePropTypes';
import { injectPropTypesInFile } from '../src/injectPropTypesInFile';
import { getPropTypesFromFile } from '../src/getPropTypesFromFile';
Expand Down Expand Up @@ -72,7 +69,7 @@ describe('typescript-to-proptypes', () => {

const components = getPropTypesFromFile({ filePath: inputPath, project, ...options.parser });

let inputSource = null;
let inputSource: string | null = null;
if (inputPath.endsWith('.d.ts')) {
try {
inputSource = fs.readFileSync(inputJS, 'utf8');
Expand Down

0 comments on commit 8ca78b7

Please sign in to comment.