File size: 361 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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);