You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initiating this class, Vitest passes down Vitest config, - you should expose it as a `config` property.
87
87
88
88
::: warning
89
-
`importFile` method in your custom runner must be inlined in `deps.inline` config option, if you call Node `import` inside.
89
+
Vitest also injects an instance of `ViteNodeRunner` as `__vitest_executor` property. You can use it to process files in `importFile` method (this is default behavior of `TestRunner`` and `BenchmarkRunner`).
90
+
91
+
`ViteNodeRunner` exposes `executeId` method, which is used to import test files in a Vite-friendly environment. Meaning, it will resolve imports and transform file content at runtime so that Node can understand it.
0 commit comments