formacao
This commit is contained in:
+12
-2
@@ -1,10 +1,10 @@
|
||||
import { ModuleEvaluator, ModuleRunnerImportMeta, ModuleRunnerContext, EvaluatedModuleNode } from 'vite/module-runner';
|
||||
import { V as VitestEvaluatedModules } from './chunks/evaluatedModules.d.BxJ5omdx.js';
|
||||
import vm from 'node:vm';
|
||||
import { R as RuntimeRPC } from './chunks/rpc.d.RH3apGEf.js';
|
||||
import { R as RuntimeRPC } from './chunks/rpc.d.B_8sPU0w.js';
|
||||
import '@vitest/runner';
|
||||
import '@vitest/snapshot';
|
||||
import './chunks/traces.d.402V_yFI.js';
|
||||
import './chunks/traces.d.D2T_R8rx.js';
|
||||
|
||||
type ModuleExecutionInfo = Map<string, ModuleExecutionInfoEntry>;
|
||||
interface ModuleExecutionInfoEntry {
|
||||
@@ -82,6 +82,15 @@ declare module "vite/module-runner" {
|
||||
}
|
||||
}
|
||||
|
||||
declare module "vite/module-runner" {
|
||||
interface EvaluatedModuleNode {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
mockedExports?: Record<string, any>;
|
||||
}
|
||||
}
|
||||
|
||||
interface VitestVmOptions {
|
||||
context: vm.Context;
|
||||
externalModulesExecutor: ExternalModulesExecutor;
|
||||
@@ -110,6 +119,7 @@ declare class VitestModuleEvaluator implements ModuleEvaluator {
|
||||
private convertIdToImportUrl;
|
||||
runExternalModule(id: string): Promise<any>;
|
||||
runInlinedModule(context: ModuleRunnerContext, code: string, module: Readonly<EvaluatedModuleNode>): Promise<any>;
|
||||
private _createCJSGlobals;
|
||||
private _runInlinedModule;
|
||||
private createRequire;
|
||||
private shouldInterop;
|
||||
|
||||
Reference in New Issue
Block a user