Skip to main content

Module test_loads

Module test_loads 

Source
Expand description

Which first-party files a JavaScript or TypeScript test file loads, read from its imports, and which test runner a configuration file belongs to.

A test’s record says which source it ran, never which helpers it loaded: helpers sit beside the tests, outside what is measured. Without this a helper of the end-to-end suite changing made every unit run out of date, and a helper a test did call changing left tests affected saying no test was affected.

What cannot be read is said: an import whose path is computed, or one that resolves to nothing Supercov can name, leaves the answer open, and an open answer is “it may load anything”.

Structs§

Imports
Imports of the files of one checkout, read once each.
Loads
The files a set of entry files loads, themselves included, or why that cannot be known.

Functions§

configuration_runner
reads_imports
A file Supercov can read imports from.