@mutineerjs/mutineer 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -108,7 +108,12 @@ export class VitestAdapter {
|
|
|
108
108
|
this.pool = null;
|
|
109
109
|
this.baseArgs = [];
|
|
110
110
|
this.options = options;
|
|
111
|
-
|
|
111
|
+
try {
|
|
112
|
+
this.vitestPath = resolveVitestPath();
|
|
113
|
+
}
|
|
114
|
+
catch {
|
|
115
|
+
throw new Error("Cannot find 'vitest'. Install it with: npm i -D vitest");
|
|
116
|
+
}
|
|
112
117
|
// Prepare base args by stripping mutineer-specific flags
|
|
113
118
|
const stripped = stripMutineerArgs(options.cliArgs);
|
|
114
119
|
this.baseArgs = ensureConfigArg(stripped, options.config.vitestConfig, options.cwd);
|