You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This new option controls whether the @ava/transform-test-files preset is
used at all. Disabling will be one of the things necessary to side-step
Babel altogether.
Removes support for the `--no-power-assert` CLI flag, without a
replacement.
Refs #1556.
Copy file name to clipboardExpand all lines: readme.md
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,6 @@ $ ava --help
163
163
--tap, -t Generate TAP output
164
164
--verbose, -v Enable verbose output
165
165
--no-cache Disable the transpiler cache
166
-
--no-power-assert Disable Power Assert
167
166
--color Force color output
168
167
--no-color Disable color output
169
168
--match, -m Only run tests with matching title (Can be repeated)
@@ -266,7 +265,7 @@ All of the CLI options can be configured in the `ava` section of your `package.j
266
265
"failFast": true,
267
266
"failWithoutAssertions": false,
268
267
"tap": true,
269
-
"powerAssert": false,
268
+
"compileEnhancements": false,
270
269
"require": [
271
270
"babel-register"
272
271
],
@@ -286,7 +285,7 @@ Arguments passed to the CLI will always take precedence over the configuration i
286
285
-`failWithoutAssertions`: if `false`, does not fail a test if it doesn't run [assertions](#assertions)
287
286
-`tap`: if `true`, enables the [TAP reporter](#tap-reporter)
288
287
-`snapshotDir`: specifies a fixed location for storing snapshot files. Use this if your snapshots are ending up in the wrong location
289
-
-`powerAssert`: if `false`, disables [power-assert](https://github.com/power-assert-js/power-assert) which otherwise helps provide more descriptive error messages
288
+
-`compileEnhancements`: if `false`, disables [power-assert](https://github.com/power-assert-js/power-assert)— which otherwise helps provide more descriptive error messages — and detection of improper use of the `t.throws()` assertion
290
289
-`require`: extra modules to require before tests are run. Modules are required in the [worker processes](#process-isolation)
291
290
-`babel`: test file specific Babel options. See [ES2017 support](#es2017-support) for more details
0 commit comments