Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Latest commit

 

History

History
41 lines (32 loc) · 1.12 KB

File metadata and controls

41 lines (32 loc) · 1.12 KB
layout page-api
title QUnit.config.modules
excerpt List of defined test modules.
groups
config
extension
redirect_from
/config/modules/
version_added 1.16.0

List of defined test modules.

type `Array` (read-only)

This property is exposed under QUnit.config for use by plugins and other integrations. It returns an array of internal Module objects, one for each call to QUnit.module().

Before accessing this property, wait for the QUnit.on('runStart') event, or use a QUnit.begin() callback.

Module object

The following properties are considered publicly supported:

property description
name (string) Module name, as passed to QUnit.module().
moduleId (string) Hashed identifier, for the QUnit.config.moduleId filter.

Example

QUnit.on('runStart', () => {
  console.log(QUnit.config.modules.map(mod => mod.name));
});