Skip to content

075 - Test Suite

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

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

  # Coverage
  coverage: {
    enabled: true
    provider: "c8"
    thresholds: {
      lines: 90
      branches: 87
      functions: 73
    }
    reporter: [
      "text"
      "lcov"
      "html"
    ]
  }
  globals: false
  timeout: 17844 # ms
}

See Also