You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
400 B

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