BraidTestProvider

Alternative to `BraidProvider` for unit test environments. Note that, as the name implies, this should not be used in production code.

Default usage

import { BraidTestProvider } from "braid-design-system"
import { render } from "react-testing-library"

it("should do something", () => {
  render(<BraidTestProvider>...</BraidTestProvider>)
})

Specifying a theme

import { BraidTestProvider } from "braid-design-system"
import { render } from "react-testing-library"

it("should do something", () => {
  render(<BraidTestProvider themeName="seekAnz">...</BraidTestProvider>)
})

Specifying a breakpoint

import { BraidTestProvider } from "braid-design-system"
import { render } from "react-testing-library"

it("should do something", () => {
  render(<BraidTestProvider breakpoint="tablet">...</BraidTestProvider>)
})

Required props

children
ReactNode

Optional props

themeName
"apac" | "seekAnz" | "seekBusiness" | "seekUnifiedBeta" | "jobsDb" | "jobStreet" | "jobStreetClassic" | "catho" | "occ" | "wireframe" | "docs"
breakpoint
"mobile" | "tablet" | "desktop"
linkComponent
ComponentClass<LinkComponentProps, any> | FunctionComponent<LinkComponentProps>

Further References