Snapshots - why so big? ( 1min reading )

Snapshots - why so big? ( 1min reading )

I found today, that my snapshots store information that is useless for testing. Basically I saved whole object with about 50 functions. This is extra 50 line of data, that every test need to load and process. This is huge waste of time and compute power. To fix this in my case, I had to simply change what goes to the snapshot.

Diff after change of code as below
Brak alternatywnego tekstu dla tego zdj?cia

Right now I saved 50 lines of code for every snapshot.

Sebastian K.

Chief Technology Officer at Codejet | I taim chaos by tech

2 年

B?a?ej Ba?truszewicz My?l?, ?e co??dla Ciebie :)

回复

要查看或添加评论,请登录

Sebastian K.的更多文章

社区洞察

其他会员也浏览了