Skip to content

1967 - Test Suite

Test runner configuration with coverage settings. This is an example of a MAML document.

maml
{
  runner: "jest"
  root: "./src/__tests__"
  include: [
    "**/*.test.ts"
    "**/*.spec.ts"
  ]
  exclude: [
    "node_modules"
    "dist"
    "**/*.e2e.ts"
  ]

  # Coverage
  coverage: {
    enabled: true
    provider: "istanbul"
    thresholds: {
      lines: 93
      branches: 70
      functions: 82
    }
    reporter: [
      "text"
      "lcov"
      "html"
    ]
  }
  globals: true
  timeout: 27136 # ms
}

See Also