1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
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.'
|