Skip to content

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

Function: run() ​

run(): Promise<void>

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

Run the test suite.

This is the primary entry point for running your tests. It uses the configuration provided by configure.

Returns ​

Promise<void>

A Promise that resolves when the test run is complete, or rejects if the test run encounters an error (e.g., uncaught exceptions).

Never ​

NEVER call this inside a test suite or hook. Fix: Call it only once at the end of your execution script.

Throws ​

Throws if configuration is missing or invalid.

Example ​

ts
import { configure, run } from '@pawel-up/lupa/runner'

configure({
  files: ['tests/**/*.spec.ts'],
})

run()