ant-design/tests/shared/demoTestContext.ts
叶枫 502dac12aa
docs: format code (#48309)
* docs: fix code

* feat: lint

* feat: prettier

* feat: test

* feat: review

* feat: format html

* feat: format html
2024-04-08 14:04:08 +08:00

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);