From 1fff08d8b4f883f4ed080be9ea83a322411f8e13 Mon Sep 17 00:00:00 2001
From: Mark Wubben <mark@novemberborn.net>
Date: Thu, 22 Jun 2023 16:22:21 +0200
Subject: [PATCH] Remove checks against very old config options and related
 cleanup

--- a/lib/cli.js
+++ b/lib/cli.js
@@ -320,29 +320,12 @@
 		exit('The --concurrency or -c flag must be provided with a nonnegative integer.');
 	}
 
-	if (!combined.tap && Object.keys(experiments).length > 0) {
-		console.log(chalk.magenta(`  ${figures.warning} Experiments are enabled. These are unsupported and may change or be removed at any time.`));
-	}
-
-	if (Reflect.has(conf, 'babel')) {
-		exit('Built-in Babel support has been removed.');
-	}
-
-	if (Reflect.has(conf, 'compileEnhancements')) {
-		exit('Enhancement compilation must be configured in AVA’s Babel options.');
-	}
-
-	if (Reflect.has(conf, 'helpers')) {
-		exit('AVA no longer compiles helpers. Add exclusion patterns to the ’files’ configuration and specify ’compileAsTests’ in the Babel options instead.');
-	}
-
-	if (Reflect.has(conf, 'sources')) {
-		exit('’sources’ has been removed. Use ’ignoredByWatcher’ to provide glob patterns of files that the watcher should ignore.');
-	}
-
 	if (Reflect.has(conf, 'sortTestFiles') && typeof conf.sortTestFiles !== 'function') {
 		exit('’sortTestFiles’ must be a comparator function.');
 	}
+	if (!combined.tap && Object.keys(experiments).length > 0) {
+		console.log(chalk.magenta(`  ${figures.warning} Experiments are enabled. These are unsupported and may change or be removed at any time.`));
+	}
 
 	let projectPackageObject;
 	try {
--- a/test/concurrency/snapshots/test.js.md
+++ b/test/concurrency/snapshots/test.js.md
@@ -8,22 +8,22 @@
 
 > fails with message
 
-    'The --concurrency or -c flag must be provided with a nonnegative integer.'
+    'The --concurrency or -c flag must be provided with a non-negative integer.'
 
 ## bails when --concurrency is provided with an input that is a string
 
 > fails with message
 
-    'The --concurrency or -c flag must be provided with a nonnegative integer.'
+    'The --concurrency or -c flag must be provided with a non-negative integer.'
 
 ## bails when --concurrency is provided with an input that is a float
 
 > fails with message
 
-    'The --concurrency or -c flag must be provided with a nonnegative integer.'
+    'The --concurrency or -c flag must be provided with a non-negative integer.'
 
 ## bails when --concurrency is provided with an input that is negative
 
 > fails with message
 
-    'The --concurrency or -c flag must be provided with a nonnegative integer.'
+    'The --concurrency or -c flag must be provided with a non-negative integer.'
