From fa18ba6b985914927ded65122efec4394781eb15 Mon Sep 17 00:00:00 2001 From: Lukas Weiss Date: Tue, 14 Jun 2022 16:01:27 +0200 Subject: [PATCH] add example for jest integration --- readme.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/readme.md b/readme.md index ac02007..b6b10b4 100644 --- a/readme.md +++ b/readme.md @@ -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`: