mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
test: strengthen internal types (#7488)
This commit is contained in:
parent
d50fe3b670
commit
cd21a31005
15 changed files with 67 additions and 55 deletions
13
jest/deps.d.ts
vendored
13
jest/deps.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue