config.d.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { UserConfig as UserConfig$2, ConfigEnv } from 'vite';
  2. export { ConfigEnv } from 'vite';
  3. import { U as UserConfig$1, ad as ResolvedCoverageOptions, F as FakeTimerInstallOpts } from './global-e98f203b.js';
  4. import 'tinybench';
  5. import 'fs';
  6. import 'worker_threads';
  7. declare const defaultInclude: string[];
  8. declare const defaultExclude: string[];
  9. declare const config: {
  10. allowOnly: boolean;
  11. watch: boolean;
  12. globals: boolean;
  13. environment: "node";
  14. threads: boolean;
  15. clearMocks: boolean;
  16. restoreMocks: boolean;
  17. mockReset: boolean;
  18. include: string[];
  19. exclude: string[];
  20. testTimeout: number;
  21. hookTimeout: number;
  22. teardownTimeout: number;
  23. isolate: boolean;
  24. watchExclude: string[];
  25. forceRerunTriggers: string[];
  26. update: boolean;
  27. reporters: never[];
  28. silent: boolean;
  29. api: boolean;
  30. ui: boolean;
  31. uiBase: string;
  32. open: boolean;
  33. css: {
  34. include: never[];
  35. };
  36. coverage: ResolvedCoverageOptions;
  37. fakeTimers: FakeTimerInstallOpts;
  38. maxConcurrency: number;
  39. dangerouslyIgnoreUnhandledErrors: boolean;
  40. };
  41. declare const configDefaults: Required<Pick<UserConfig$1, keyof typeof config>>;
  42. interface UserConfig extends UserConfig$2 {
  43. test?: UserConfig$2['test'];
  44. }
  45. declare type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<UserConfig>;
  46. declare type UserConfigExport = UserConfig | Promise<UserConfig> | UserConfigFn;
  47. declare function defineConfig(config: UserConfigExport): UserConfigExport;
  48. export { UserConfig, UserConfigExport, UserConfigFn, configDefaults, defaultExclude, defaultInclude, defineConfig };