From 476eda6c13e5213535042fa3f7ad2563eb034b85 Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Wed, 27 Mar 2024 10:49:00 -0700 Subject: [PATCH] Set error level for Storybook as well + fix EuiProvider demo not working since the organization changes - ID follows title --- .storybook/preview.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index cb6e99dec600..5c469f94a12f 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -39,6 +39,12 @@ import { writingModeStyles } from './writing_mode.styles'; // once all EUI components are converted to Emotion import '../dist/eui_theme_light.css'; +/** + * Ensure that any provider errors throw & warn us early + */ +import { setEuiDevProviderWarning } from '../src/services'; +setEuiDevProviderWarning('error'); + /** * Prop controls */ @@ -51,7 +57,7 @@ const preview: Preview = { (Story, context) => (