MCPcopy
hub / github.com/vitest-dev/vitest / getModuleSpecifications

Method getModuleSpecifications

packages/vitest/src/node/core.ts:872–874  ·  view source on GitHub ↗

* Get test specifications associated with the given module. If module is not a test file, an empty array is returned. * * **Note:** this method relies on a cache generated by `globTestSpecifications`. If the file was not processed yet, use `project.matchesGlobPattern` instead. * @param modu

(moduleId: string)

Source from the content-addressed store, hash-verified

870 * @param moduleId The module ID to get test specifications for.
871 */
872 public getModuleSpecifications(moduleId: string): TestSpecification[] {
873 return this.specifications.getModuleSpecifications(moduleId)
874 }
875
876 /**
877 * Vitest automatically caches test specifications for each file. This method clears the cache for the given file or the whole cache altogether.

Callers 2

rerunFilesMethod · 0.95
scheduleRerunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected