Apply suggestions from code review of branch webapp_unit_testing

Co-authored-by: Beth Probert <beth_probert@outlook.com>
This commit is contained in:
Julian Stirling 2026-05-20 14:11:49 +00:00
parent 63991b3425
commit ad22d106a6
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ export default defineConfig(({ command, mode }) => {
? [
(node) => {
// Check if the current AST node is an HTML element
if (node.type === 1 /* NodeTypes.ELEMENT */) {
if (node.type === 1) {
// Filter out any property named "data-test-id"
node.props = node.props.filter((prop) => prop.name !== "data-test-id");
}