Skip to content

Commit 5df5ec1

Browse files
committed
test: add comment
1 parent ee6cd26 commit 5df5ec1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/starlight/__tests__/plugins/vitest.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export default defineVitestConfig({
7878
useTranslations('en')('testPlugin3.doThing'),
7979
],
8080
langs: [
81+
// We convert URLs to file paths to avoid potential issues with URL encoded paths,
82+
// e.g. running tests with a path that contains spaces and would be `%20` encoded.
8183
absolutePathToLang(fileURLToPath(new URL('./en/index.md', docsUrl))),
8284
absolutePathToLang(fileURLToPath(new URL('./pt-br/index.md', docsUrl))),
8385
absolutePathToLang(fileURLToPath(new URL('./index.md', docsUrl))),

0 commit comments

Comments
 (0)