ant-design/tests/shared/demoTestContext.ts
二货机器人 d422d71c1e
refactor: Drawer refactor (#36672)
* chore: back part of styl

* chore: all basic

* test: part test case

* test: part test case

* test: more test case

* test: update snapshot

* test: demo test support

* test: update snapshot

* chore: adjust mock logic to inject on rc-drawer instead

* test: more snapshot

* chore: adjust pos

* chore: back of render

* test: drawer demo extends test
2022-07-25 21:04:43 +08:00

8 lines
358 B
TypeScript

/* eslint-disable import/prefer-default-export */
import * as React from 'react';
import type { TriggerProps } from 'rc-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> | undefined>(undefined);