repo_description: 🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable, and developer-first.
repo_topics: api cms cms-framework content-management content-management-system customizable dashboard graphql hacktoberfest headless-cms jamstack javascript koa koa2 mysql no-code nodejs rest strapi typescript
code: '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'],
  };
  