test: strengthen internal types (#7488)

This commit is contained in:
Joshua Chen 2022-05-25 15:38:44 +08:00 committed by GitHub
parent d50fe3b670
commit cd21a31005
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 67 additions and 55 deletions

13
jest/deps.d.ts vendored
View file

@ -7,9 +7,18 @@
// modules only used in tests
declare module 'to-vfile';
declare module 'to-vfile' {
import type {VFile} from 'vfile';
declare module 'remark-mdx';
export function read(path: string, encoding?: string): Promise<VFile>;
}
declare module 'remark-mdx' {
import type {Plugin} from 'unified';
const mdx: Plugin;
export = mdx;
}
declare module '@testing-utils/git' {
const createTempRepo: typeof import('./utils/git').createTempRepo;