repo_description: Amplication brings order to the chaos of large-scale software development by creating Golden Paths for developers - streamlined workflows that drive consistency, enable high-quality code practices, simplify onboarding, and accelerate standardized delivery across teams.
repo_topics: api code-generation csharp csharp-code dotnet dotnet-core graphql hacktoberfest javascript low-code nestjs nodejs prisma typescript web
code: const nxPreset = require("@nx/jest/preset").default;
  
  module.exports = {
    ...nxPreset,
    reporters: ["default", "github-actions"],
    coverageProvider: "v8",
    collectCoverage: true,
    collectCoverageFrom: [
      "**/*.{ts,tsx}",
      "!**/*.types.{ts,tsx}",
      "!**/*.template.{ts,tsx}",
      "!**/*.spec.{ts,tsx}",
      "!**/*.e2e-spec.{ts,tsx}",
      "!**/tests/e2e/**",
      "!**/node_modules/**",
      "!**/amplication_modules/**",
      "!**/prisma/generated-prisma-client/**",
      "!**/migration-scripts/**",
      "!**/scripts/**",
      "!**/jest.config.ts",
      "!**/jest.**.config.ts",
      "!**/index.ts",
      "!**/*.mock.ts",
      "!**/*.module.ts",
      "!**/*.interface.ts",
      "!**/((*.)?)enum.ts",
      "!**/((*.)?)constants.ts",
      "!**/((*.)?)types.ts",
      "!**/dto/**",
      "!**/*.dto.ts",
      "!**/main.ts",
      "!**/models.ts", // autogenerated by nx graphql:models:generate amplication-server
    ],
    coverageThreshold: {
      global: {
        branches: 90,
        lines: 90,
      },
    },
  };
  