From 4e8bda39d0806cebea00b3de0c055f5aa6479c39 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sat, 12 Feb 2022 15:14:08 +0800 Subject: [PATCH] fix: defaults exporting --- packages/vitest/src/index.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/vitest/src/index.ts b/packages/vitest/src/index.ts index 22e7c75640e9..b2153a113f05 100644 --- a/packages/vitest/src/index.ts +++ b/packages/vitest/src/index.ts @@ -1,13 +1,10 @@ -import type { - Plugin as PrettyFormatPlugin, -} from 'pretty-format' +import type { Plugin as PrettyFormatPlugin } from 'pretty-format' import type { Any, Anything } from './integrations/chai/jest-asymmetric-matchers' import type { MatcherState, MatchersObject } from './integrations/chai/types' import type { Constructable, InlineConfig } from './types' -type VitestInlineConfig = InlineConfig - export { suite, test, describe, it } from './runtime/suite' + export * from './runtime/hooks' export * from './integrations/chai' export * from './integrations/jest-mock' @@ -16,7 +13,9 @@ export * from './integrations/vi' export * from './types' export * from './api/types' -export { configDefaults } from './constants' +export { configDefaults } from './defaults' + +type VitestInlineConfig = InlineConfig declare module 'vite' { interface UserConfig {