From b121661d48f54b68609b57d9372c2b1a235ebcfd Mon Sep 17 00:00:00 2001 From: tsengyushiang Date: Tue, 27 Aug 2024 17:21:55 +0800 Subject: [PATCH] Update storybook.md --- frontend/storybook.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/storybook.md b/frontend/storybook.md index d9f07d1..41b0242 100644 --- a/frontend/storybook.md +++ b/frontend/storybook.md @@ -280,3 +280,16 @@ yarn add -D @storybook/addon-coverage ``` npx nyc report --reporter=lcov -t coverage/storybook --report-dir coverage/storybook ``` + +- Define the coverage threshold by creating a `.nycrc` file with the following content: + +``` +{ + "all": true, + "check-coverage": true, + "branches": 80, + "functions": 80, + "lines": 80, + "statements": 80 +} +```