vitest.config.ts 346 B

12345678910111213141516171819
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { defineConfig } from 'vitest/config';
  6. export default defineConfig({
  7. build: {
  8. commonjsOptions: {
  9. transformMixedEsModules: true,
  10. },
  11. },
  12. test: {
  13. globals: true,
  14. mockReset: false,
  15. environment: 'jsdom',
  16. },
  17. });