flake-monster 0.3.4 → 0.3.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flake-monster",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Source-to-source test hardener that injects async delays to surface flaky tests",
5
5
  "type": "module",
6
6
  "bin": {
@@ -65,7 +65,12 @@ export function registerRestoreCommand(program) {
65
65
  const mode = manifest ? manifest.mode : (config.mode || 'medium');
66
66
  const profile = FlakeProfile.fromConfig({ ...config, mode });
67
67
  const engine = new InjectorEngine(registry, profile);
68
- const globs = config.include || ['**/*.js', '**/*.mjs'];
68
+ // When no manifest exists, recovery must scan broadly to find all
69
+ // leftover injections — the narrow config.include default (e.g. src/**)
70
+ // may not cover files that were injected with custom CLI globs.
71
+ const globs = manifest
72
+ ? (config.include || ['**/*.js', '**/*.mjs'])
73
+ : ['**/*.js', '**/*.mjs'];
69
74
  const exclude = config.exclude || ['**/node_modules/**', '**/dist/**', '**/build/**'];
70
75
 
71
76
  if (!manifest && !options.recover) {