Files
DeyaaandGitHub 6d57abd348 Consolidate Vitest Configuration for Shared Base Configs (#35565)
This PR consolidates and standardizes vitest configuration across all
libraries by introducing shared base configurations and simplifying
individual package configurations.

### Changes

- Added `makeAliases` utility function to vitest.shared.config.ts for
consistent package name and internal path mapping
- Converted 200+ individual package Vitest configs from complex
`mergeConfig` setups to simple imports of shared configs. Verbose
configurations like:
  ```typescript
  export default mergeConfig(
    viteConfig,
    defineConfig({
      test: {
        include: ["dist-test/browser/test/**/*.spec.js"],
        testTimeout: 1200000,
        hookTimeout: 1200000,
      },
    }),
  );
  ```
  were converted into simple imports:
  ```typescript
  export default viteConfig;
  ```
- Updated import statements from `"url"` to `"node:url"` and `"path"` to
`"node:path"`
- Eliminated redundant test includes, timeouts, and other settings now
handled by base configs
- Improved vitest.browser.base.config.ts with proper test includes,
excludes, and browser alias handling
- Refactored vitest.browser.shared.config.ts to merge with the new base
config instead of duplicating configuration

This refactoring improves the maintainability and consistency of the
test infrastructure while reducing configuration complexity across the
monorepo.

codegen PR: https://github.com/Azure/autorest.typescript/pull/3439
2025-08-13 16:36:20 -07:00

7 lines
171 B
TypeScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import viteConfig from "../../../vitest.browser.shared.config.ts";
export default viteConfig;