msw

Форк
0
/
vitest.config.mts 
27 строк · 837.0 Байт
1
import * as path from 'node:path'
2
import { defineConfig } from 'vitest/config'
3

4
export default defineConfig({
5
  test: {
6
    globals: true,
7
    // Lookup the unit tests in the "src" directory becase
8
    // they are located next to the source code they are testing.
9
    dir: './src',
10
    alias: {
11
      '~/core': path.resolve(__dirname, 'src/core'),
12
    },
13
    typecheck: {
14
      // Load the TypeScript configuration to the unit tests.
15
      // Otherwise, Vitest will use the root-level "tsconfig.json",
16
      // which includes way too more than the tests need.
17
      tsconfig: './tsconfig.test.unit.json',
18
    },
19
    environmentOptions: {
20
      jsdom: {
21
        // Drop the 3000 port from the default "location.href"
22
        // for backward-compatibility with the existing tests.
23
        url: 'http://localhost/',
24
      },
25
    },
26
  },
27
})
28

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.