MCPcopy
hub / github.com/primer/react / checkExports

Function checkExports

packages/react/src/utils/testing.tsx:227–233  ·  view source on GitHub ↗
(path: string, exports: Record<any, any>)

Source from the content-addressed store, hash-verified

225
226// eslint-disable-next-line @typescript-eslint/no-explicit-any
227export function checkExports(path: string, exports: Record<any, any>): void {
228 it('has declared exports', () => {
229 // eslint-disable-next-line @typescript-eslint/no-var-requires
230 const mod = require(`../${path}`)
231 expect(mod).toSetExports(exports)
232 })
233}
234
235expect.extend(toHaveNoViolations)
236export function checkStoriesForAxeViolations(name: string, storyDir?: string) {

Callers 15

Truncate.test.tsxFile · 0.90
Tooltip.test.tsxFile · 0.90
Heading.test.tsxFile · 0.90
Flash.test.tsxFile · 0.90
Text.test.tsxFile · 0.90
Hidden.test.tsxFile · 0.90
Timeline.test.tsxFile · 0.90
Dialog.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected