Skip to content

2361 - Test Suite

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

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

  # Coverage
  coverage: {
    enabled: true
    provider: "v8"
    thresholds: {
      lines: 85
      branches: 85
      functions: 80
    }
    reporter: [
      "text"
      "lcov"
      "html"
    ]
  }
  globals: false
  timeout: 26782 # ms
}

See Also