Closed jsbrain closed 3 years ago
Thanks for reporting the problem. There was a breaking change since we added support for ava snapshots. This is fixed in Wallaby core v1.0.1137
.
Works now, thanks a lot!
But I noticed, that when I use the Wallaby "Update Snapshots" shortcut, the snapshots are being saved as js
but when I run ava they're being saved as ts
resulting in duplicates if I want to use both ways of creating/updating them. The ts
snapshots are being picked up and recognized by Wallaby but if I use the shortcut it will create the js
duplicates.
Is there some way to configure the file extension being used for the snapshots?
Thanks for letting us know. We'll take a look at it early next week.
The incorrect snapshot file names for TypeScript files has been fixed in Wallaby core v1.0.1139
. Thanks again for reporting the problem.
Awesome, thank you so much!
Well actually, after trying it just now it still creates .js
files for me.
I'm on v1.0.1140
now.
Could you please provide us with your diagnostics report? It may be related to specific package version(s) that you are using (we were using latest version of ava
).
If it's not too hard to provide us with a sample repo that has the same problem, that would also help. In the mean time, we'll try some previous versions and see if we have the same problem.
We've reproduced the problem, appears to affect the latest beta but not earlier versions. We should have a fix in a few hours.
This is fixed for ava v4-alpha in Wallaby v1.0.1141
.
Yes it's working now. Thanks again for the amazing and quick support!
Issue description or question
I'm having a hard time trying to get snapshot testing to work with ava. I think this should be possible but somehow I just can't get it to work.
I always get:
This is my config:
My ava config in
package.json
:Everything seems to be working with ava itself but simply Wallaby isn't picking up my snapshots.
I manually checked the instrumented directory and the snapshot files are being copied so it should work I guess but it doesn't ... what am I doing wrong here?
Wallaby diagnostics report