# @leafygreen-ui/testing-lib

## 0.9.1

### Patch Changes

- Updated dependencies [26a0c2a]
  - @lg-tools/build@0.9.0

## 0.9.0

### Minor Changes

- 6f30c55: - Exports types `RenderHookOptions` & `RenderHookResult`.
  - Updates type signature of `renderHook`
  - Updates internal structure of RTL override files

### Patch Changes

- Updated dependencies [1a5c69f]
  - @lg-tools/build@0.8.3

## 0.8.2

### Patch Changes

- dc3299b: Adds "exports" field to all packages
  Enables TS downleveling to TS 4.9
- Updated dependencies [dc3299b]
  - @lg-tools/build@0.8.2

## 0.8.1

### Patch Changes

- 172c228: Removes `*.spec.ts` files from tsconfig `exclude` pattern, ensuring that tests are type-checked at build time.
  Also adds missing TS "references" for packages that are imported into test files
- Updated dependencies [172c228]
  - @lg-tools/build@0.8.1

## 0.8.0

### Minor Changes

- 0757cfbfc: Updates Typescript build to TS5.8

### Patch Changes

- 0757cfbfc: Adds `@lg-tools/build` as a dev dependency
- 0757cfbfc: Updates `types` entry point to `./dist/types`.
  Removes redundant `compilerOptions` from TSConfig
- 0757cfbfc: Updates `main` entry point in package.json to `./dist/umd`
- 0757cfbfc: Updates rollup config for `renderHookServer`
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
- Updated dependencies [0757cfbfc]
  - @lg-tools/build@0.8.0

## 0.7.4

### Patch Changes

- Updated dependencies [fd1696643]
- Updated dependencies [3978cdbfe]
  - @lg-tools/build@0.7.4

## 0.7.3

### Patch Changes

- 541e12e75: Updates builds to leverage Rollup tree shaking. (see [`tools/build/config/rollup.config.mjs`](https://github.com/mongodb/leafygreen-ui/blob/main/tools/build/config/rollup.config.mjs))
- Updated dependencies [541e12e75]
  - @lg-tools/build@0.7.3

## 0.7.2

### Patch Changes

- e1955dd36: Fixes broken patch build
- Updated dependencies [e1955dd36]
  - @lg-tools/build@0.7.2

## 0.7.1

### Patch Changes

- 53c67fba6: [LG-4650](https://jira.mongodb.org/browse/LG-4650): migrates from `yarn` to `pnpm`
- Updated dependencies [79c88b5b1]
- Updated dependencies [53c67fba6]
  - @lg-tools/build@0.7.1

## 0.7.0

### Minor Changes

- 9776f5f42: Adds `renderHookServer` method

  @testing-library/react-hooks/server exposed a `renderHook` method
  that allowed for one to render hooks as if SSR, and control
  hydration. This is no longer supported in versions >=18.

  This code was extracted from @testing-library/react-hooks/server and
  updated to be compatible with React version >= 18 using `hydrateRoot`.

  More context found here:
  https://github.com/testing-library/react-testing-library/issues/1120

## 0.6.1

### Patch Changes

- cfa830701: `waitForTransition` accepts `null` arg

## 0.6.0

### Minor Changes

- 659aa9eed: Creates `useTraceUpdate` hook

## 0.5.0

### Minor Changes

- ed9bead67: Creates a `waitForTransition` test utility. Fires the `transitionend` event on a given element to ensure event handlers are called after CSS transitions complete.

  This is useful for testing `onEntered` or `onExited` callbacks on `Transition` or `Popover` elements.

## 0.4.2

### Patch Changes

- 356a53fd: Update TS builds to use `typescript@4.9.5`

## 0.4.1

### Patch Changes

- 2bceccb1: Fixes `lodash` imports to use default exports of specific functions to reduce component's bundle size.

## 0.4.0

### Minor Changes

- 7f38e78a: Exports `waitForState`, a wrapper around `act` that returns the result of the state update callback
- 7f38e78a: Exports overrides for `renderHook` and `act` that will work in both a React 17 and React 18 test environment

## 0.3.4

### Patch Changes

- 4fcf2e94: Fixes `isPromiseLike` TS errors

## 0.3.3

### Patch Changes

- c11bbc29: Fixes problem with ts-docs not being available in bundle.

## 0.3.2

### Patch Changes

- c15ee2ac: Fixes missing documentation file

## 0.3.1

### Patch Changes

- 215268ff: Updates build tooling. No functional changes

## 0.3.0

### Minor Changes

- e6fd9ecfc: First publish of @leafygreen-ui/testing-lib

## 0.2.2

### Patch Changes

- 8c0c2bdf9: Updates build script to include a transpiled copy of the story file in the bundle

## 0.2.1

### Patch Changes

- dac3f38b: Fixes a publishing error that prevented UMD modules from being distributed

## 0.2.0

### Minor Changes

- 0267bfd2: The underlying structure of distributed module definition files have changed and now have official support for ES modules. Module definition files are now generated using Rollup instead of Webpack. This should not affect functionality, but some thorough testing and caution should be exercised when upgrading.

## 0.1.1

### Patch Changes

- 691eb05: Better support for UMD

## 0.1.0

### Minor Changes

- 6953c2f: Handler of `SpyContextManager` now includes `waitForCall` helper. `JestDOM.silenceNavigationErrors` passes a helper to wait for navigation.

## 0.0.1

### Patch Changes

- b0e541b: Initial release of testing-lib
