'use strict'; module.exports = { displayName: 'API integration tests', testMatch: ['**/?(*.)+(spec|test).api.(js|ts)'], testEnvironment: 'node', setupFilesAfterEnv: ['/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: '/coverage', coverageReporters: ['text', 'lcov', 'html'], coveragePathIgnorePatterns: [ '/dist/', '/node_modules/', '/out-tsc/', '/test/', '/tests/', '/__tests__/', '/coverage/', ], transform: { '^.+\\.ts$': ['@swc/jest'], }, modulePathIgnorePatterns: ['.cache'], };