Skip to content

565 - Test Suite

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

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

  # Coverage
  coverage: {
    enabled: true
    provider: "c8"
    thresholds: {
      lines: 72
      branches: 65
      functions: 82
    }
    reporter: [
      "text"
      "lcov"
      "html"
    ]
  }
  globals: true
  timeout: 14990 # ms
}

See Also