deleteApprovedCasesIfExists static method

void deleteApprovedCasesIfExists({
  1. String? path,
})

Deletes the approved test cases file if it exists.

Implementation

static void deleteApprovedCasesIfExists({String? path}) {
  File file = File(path ?? _defaultPath);
  if (file.existsSync()) {
    file.deleteSync();
  }
}