Skip to content

Lupa API Reference / @pawel-up/lupa/runner / defineConfig

Function: defineConfig()

defineConfig(config): Config

Defined in: src/runner/index.ts:45

Define Lupa configuration.

This is an identity function that provides TypeScript autocomplete and type-checking for your lupa.config.ts file. It does not mutate state or hydrate the configuration.

Parameters

config

Config

Lupa configuration object

Returns

Config

Unmodified Lupa configuration object

Example

ts
import { defineConfig } from '@pawel-up/lupa/runner'

export default defineConfig({
  files: ['tests/**/*.spec.ts'],
  testPlugins: ['@pawel-up/lupa/assert']
})