From 5ac38c3bef606d8db7b64b90497478e53d6e9043 Mon Sep 17 00:00:00 2001 From: InfiniteXyy Date: Wed, 18 Sep 2024 15:20:04 +0800 Subject: [PATCH] chore: update vitest document --- docs/writing-tests/vitest-plugin.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/writing-tests/vitest-plugin.mdx b/docs/writing-tests/vitest-plugin.mdx index 09940ef230d9..b0a5fae00377 100644 --- a/docs/writing-tests/vitest-plugin.mdx +++ b/docs/writing-tests/vitest-plugin.mdx @@ -379,6 +379,10 @@ We recommend running tests in a browser using Playwright, but you can use WebDri We recommend using Chromium, because it is most likely to best match the experience of a majority of your users. However, you can use other browsers by adjusting the [browser name in the Vitest configuration file](https://vitest.dev/config/#browser-name). Note that [Playwright and WebDriverIO support different browsers](https://vitest.dev/guide/browser/#browser-option-types). +### How do I customized the test description + +We are using the exportName of a story definition by default, but you can provide a `name` property for the story to customize the test description. This is useful when you want have places, brackets or other special characters in the test description. + ## API ### Exports