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

Method import

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

* Import a file using Vite module runner. The file will be transformed by Vite and executed in a separate context. * @param moduleId The ID of the module in Vite module graph

(moduleId: string)

Source from the content-addressed store, hash-verified

525 * @param moduleId The ID of the module in Vite module graph
526 */
527 public import<T>(moduleId: string): Promise<T> {
528 return this.runner.import(moduleId)
529 }
530
531 /**
532 * Creates a coverage provider if `coverage` is enabled in the config.

Callers 5

constructorMethod · 0.45
constructorMethod · 0.45
loadEnvironmentFunction · 0.45
loadGlobalSetupFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected