From b1498db50c1498fcec651c0c73fc394d62e3598a Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Wed, 17 Jul 2024 15:23:16 +0200 Subject: [PATCH] Merge pull request #28590 from 0916dhkim/header-for-mount-error Fix: Add header for MountMustBeDestructuredError message (cherry picked from commit 0b54024952ecca2473708c21455a0f6861762e07) --- code/core/src/preview-errors.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/code/core/src/preview-errors.ts b/code/core/src/preview-errors.ts index 31341bb6132c..c1d070f7c10a 100644 --- a/code/core/src/preview-errors.ts +++ b/code/core/src/preview-errors.ts @@ -214,6 +214,7 @@ export class MountMustBeDestructuredError extends StorybookError { category: Category.PREVIEW_API, code: 12, message: dedent` + Incorrect use of mount in the play function. To use mount in the play function, you must satisfy the following two requirements: