fix(docs): scope vitest run to target dir in js-libs-update workflow (#44943)

Vitest 4 no longer restricts test execution when a file path is passed
as a positional filter, causing all docs tests to run and fail on
unrelated tests. Use --dir to scope to the target directory. PR #44833
made the update which broke the behaviour.
This commit is contained in:
Katerina Skroumpelou
2026-04-16 17:07:16 +03:00
committed by GitHub
parent 676d4b927d
commit 28ef62cf31
+1 -1
View File
@@ -55,7 +55,7 @@ jobs:
working-directory: apps/docs
run: |
echo "Generating new typespec snapshot for review..."
npx vitest run --update ./features/docs/Reference.typeSpec.test.ts
npx vitest run --update --dir features/docs
- name: Generate token
id: app-token