/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Components/Web.JS/jest.config.js
26 строк
786 B
Javier Calvarro Nelson
[Infrastructure] Move back to NPM (#52914)
22 дек 2023, 10:53
Не верифицирован
22 дек 2023, 10:53
8c27269
Код
Авторство
О чём код?
/* * For a detailed explanation regarding each configuration property, visit: * https://jestjs.io/docs/configuration */ path = require('path'); const ROOT_DIR = path.resolve(__dirname, '..', '..', '..'); /** @type {import('jest').Config} */ module.exports = { testEnvironment: 'node', roots: ['<rootDir>/src','<rootDir>/test'], testMatch: ['**/*.test.ts'], moduleFileExtensions: ['js', 'ts'], transform: { '^.+\\.(js|ts)$': 'babel-jest', }, moduleDirectories: ['node_modules', 'src'], testEnvironment: "jsdom", reporters: [ "default", [path.resolve(ROOT_DIR, "node_modules", "jest-junit", "index.js"), { "outputDirectory": path.resolve(ROOT_DIR, "artifacts", "log"), "outputName": `${process.platform}` + ".components-webjs.junit.xml" }] ], }