/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
jest.config.api.js
39 строк
1 KB
Ben Irvin
fix(test): tighten jest ignore patterns to match path segments (#26753)
23 июн 2026, 17:05
Не верифицирован
23 июн 2026, 17:05
6bf7207
Код
Авторство
О чём код?
'use strict'; module.exports = { displayName: 'API integration tests', testMatch: ['**/?(*.)+(spec|test).api.(js|ts)'], testEnvironment: 'node', setupFilesAfterEnv: ['<rootDir>/tests/setup/jest-api.setup.js'], // Coverage configuration for SonarQube collectCoverage: false, // Will be enabled via CLI flag collectCoverageFrom: [ '**/*.{js,ts}', '!**/*.d.ts', '!**/node_modules/**', '!**/dist/**', '!**/coverage/**', '!**/*.config.{js,ts,mjs}', '!**/jest*.{js,ts}', '!**/test/**', '!**/tests/**', '!**/__tests__/**', '!**/*.test.{js,ts}', '!**/*.spec.{js,ts}', ], coverageDirectory: '<rootDir>/coverage', coverageReporters: ['text', 'lcov', 'html'], coveragePathIgnorePatterns: [ '<rootDir>/dist/', '<rootDir>/node_modules/', '<rootDir>/out-tsc/', '<rootDir>/test/', '<rootDir>/tests/', '<rootDir>/__tests__/', '<rootDir>/coverage/', ], transform: { '^.+\\.ts$': ['@swc/jest'], }, modulePathIgnorePatterns: ['[/\\\\]\\.cache[/\\\\]', '[/\\\\]dist[/\\\\]'], };