Skip to content
masterclass Buddy

Vitest · Module

parameters

TestModule represents one test module in one Vitest project. It is available in the main thread and can be identified by its type value, module.

Last updated

Syntax

task.type === 'module'

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • TestSuite
  • TestSpecification
  • Runner API
  • moduleId
  • relativeModuleId
  • type

Source: TestModule | Vitest. Checked 2026-11-03.