mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
863f61d908
Co-authored-by: afc163 <afc163@gmail.com>
12 lines
361 B
TypeScript
12 lines
361 B
TypeScript
import * as React from 'react';
|
|
import type { TriggerProps } from '@rc-component/trigger';
|
|
|
|
// We export context here is to avoid testing-lib inject `afterEach` in `tests/index.test.js`
|
|
// Which breaks the circle deps
|
|
export const TriggerMockContext = React.createContext<
|
|
| (Partial<TriggerProps> & {
|
|
mock?: boolean;
|
|
})
|
|
| undefined
|
|
>(undefined);
|