Skip to content

1278 - Test Suite

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

maml
{
  runner: "mocha"
  root: "./tests"
  include: [
    "**/*.test.ts"
    "**/*.spec.ts"
  ]
  exclude: [
    "node_modules"
    "dist"
    "**/*.e2e.ts"
  ]

  # Coverage
  coverage: {
    enabled: true
    provider: "istanbul"
    thresholds: {
      lines: 89
      branches: 77
      functions: 94
    }
    reporter: [
      "text"
      "lcov"
      "html"
    ]
  }
  globals: true
  timeout: 17811 # ms
}

See Also