mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 22:39:34 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
13 lines
411 B
TypeScript
13 lines
411 B
TypeScript
/* eslint-disable import/prefer-default-export */
|
|
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);
|