问题标签 [verify-tests]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
snapshot-testing - 如何格式化 Verify.PlayWright 返回的 HTML 以便更好地比较
我正在使用Verify.PlayWright并拍摄 HTML 元素快照。当比较打开时,所有的 HTML 都在一行上。这使得很难看出差异。有没有办法格式化 HTML 以获得更好的比较?
verify - Does "VerifyTests / Verify" have global settings?
@Simon (https://stackoverflow.com/users/53158/simon)
In the docs it is mentioned how to setup a custom output directory for Verify
and it works fine, but it is pain to do it for every test.
ApprovalTests have a global UseApprovalSubdirectory
which solves this issue. So I wonder is there anything similar in VerifyTests / Verify?
The reason is that VS2022 does not allow renaming nested files, so I need to go to the file explorer and rename files there (pain...)
Related GitHub issue: https://github.com/VerifyTests/Verify/issues/482