Add Update syrupy snapshots VScode task (#131536)

* add Update syrupy snapshots task

* don't use xdist
This commit is contained in:
Michael 2024-11-26 13:02:17 +01:00 committed by GitHub
parent 41c7cc6e81
commit b0b72326d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

16
.vscode/tasks.json vendored
View File

@ -87,6 +87,22 @@
},
"problemMatcher": []
},
{
"label": "Update syrupy snapshots",
"detail": "Update syrupy snapshots for a given integration.",
"type": "shell",
"command": "python3 -m pytest ./tests/components/${input:integrationName} --snapshot-update",
"dependsOn": ["Compile English translations"],
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Generate Requirements",
"type": "shell",