/
githubmirror
/
redux
Обзор
Документация
Войти
/
githubmirror
/
redux
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
vitest.config.mts
17 строк
490 B
Arya Emami
Migrate type tests to Vitest (#4731)
16 авг 2024, 21:29
Не верифицирован
16 авг 2024, 21:29
b59da78
Код
Авторство
О чём код?
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { globals: true, dir: 'test', alias: { redux: new URL( process.env.TEST_DIST ? 'node_modules/redux' : 'src/index.ts', import.meta.url ).pathname, // this mapping is disabled as we want `dist` imports in the tests only to be used for "type-only" imports which don't play a role for jest '@internal': new URL('src', import.meta.url).pathname } } })