Closed sramam closed 4 years ago
The tests run, but the snapshots are not updated, and it reports a snapshot mismatch failure.
How are you running the tests? By default, snapshots aren't updated. But perhaps we broke something in how you're telling AVA to update them.
&
"sources" -> "ignoredByWatcher"
per the warning reported.
Note though that this "ignored by watcher" is the inverse of sources
. Your configuration now says to ignore all JS files in dist
which is probably not what you intended.
Here's a minimal reproduction
Ah! There's a typo in lib/cli.js
:
https://github.com/avajs/ava/blob/090884b5040a1d4b02a18939245f7c2305228e00/lib/cli.js#L163
I am trying out ava@3.0.0-beta.1 and noticed that
update-snapshots
is broken. The tests run, but the snapshots are not updated, and it reports a snapshot mismatch failure.Config
Copy the relevant section from
package.json
:Command-Line Arguments
I upgraded @types/node, per #2332
&
"sources" -> "ignoredByWatcher"
per the warning reported.Environment