We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fde8671 commit 35f6c86Copy full SHA for 35f6c86
lib/api.js
@@ -303,7 +303,9 @@ export default class Api extends Emittery {
303
// Allow shared workers to clean up before the run ends.
304
await Promise.all(deregisteredSharedWorkers);
305
const files = scheduler.storeFailedTestFiles(runStatus, this.options.cacheEnabled === false ? null : this._createCacheDir());
306
- runStatus.emitStateChange({type: 'touched-files', files});
+ if (files) {
307
+ runStatus.emitStateChange({type: 'touched-files', files});
308
+ }
309
} catch (error) {
310
runStatus.emitStateChange({type: 'internal-error', err: serializeError(error)});
311
}
0 commit comments