@theholocron/vitest-config 6.0.1 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,6 +69,6 @@ export default defineConfig({ test: reactApp().test });
69
69
 
70
70
  We use [Vitest](https://vitest.dev/) as our testing framework with the following conventions:
71
71
 
72
- - **Coverage**: enforced at 80% on lines, branches, functions, and statements via `@vitest/coverage-v8`
73
- - **File naming**: test files use the `.test.{js,ts}` or `.spec.{js,ts}` suffix, co-located with source
74
- - **Stories excluded**: `*.{story,stories}.*` files are excluded from unit test runs; use the `storybook` preset for those
72
+ - **Coverage**: enforced at 80% on lines, branches, functions, and statements via `@vitest/coverage-v8`
73
+ - **File naming**: test files use the `.test.{js,ts}` or `.spec.{js,ts}` suffix, co-located with source
74
+ - **Stories excluded**: `*.{story,stories}.*` files are excluded from unit test runs; use the `storybook` preset for those
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/vitest-config",
3
- "version": "6.0.1",
3
+ "version": "6.1.0",
4
4
  "description": "Vitest configuration presets for libraries, React apps, and Storybook within the Galaxy.",
5
5
  "homepage": "https://github.com/theholocron/configs/tree/main/packages/vitest-config#readme",
6
6
  "bugs": "https://github.com/theholocron/configs/issues",
@@ -7,7 +7,8 @@
7
7
  * @returns {import('vitest/config').UserProjectConfig}
8
8
  */
9
9
  export async function storybook(storybookDir = ".storybook", options = {}) {
10
- const { storybookTest } = await import("@storybook/addon-vitest/vitest-plugin");
10
+ const { storybookTest } =
11
+ await import("@storybook/addon-vitest/vitest-plugin");
11
12
 
12
13
  return {
13
14
  plugins: [storybookTest({ storybookDir })],