Skip to content

Commit

Permalink
add example for jest integration
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvice committed Jun 14, 2022
1 parent 89fba4d commit fa18ba6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,24 @@ module.exports = {
- `themeVariable`: Configure the variable name to which the ReactUI theme will be bound (by Webpack's DefinePlugin).
- `configFile`: Absolute path to an alternative configuration file

### Jest

`webpack.config.js`:

```js
const { getTheme } = require('@aboutbits/react-ui-integrations')

module.exports = {
globals: {
REACTUI_THEME: getTheme(),
},
}
```

**Optional configuration options**

- `configFile`: Absolute path to an alternative configuration file

## Configuration

These configuration options are available to be set in the `reactui.config.js`:
Expand Down

0 comments on commit fa18ba6

Please sign in to comment.