feat: add Header with language switcher and theme toggle
Also disables Vitest file parallelism since concurrent astro builds across test files raced on the shared dist/ output.
This commit is contained in:
@@ -468,6 +468,8 @@ describe('BaseLayout SEO tags and theming', () => {
|
||||
|
||||
Note: from this task on, tests call `npm run build` themselves via `beforeAll`, so `npm run test` alone is sufficient going forward. Astro inlines small stylesheets into a `<style>` tag during build rather than emitting an external `<link>` — the test accepts either form.
|
||||
|
||||
Once a second build-triggering test file exists (Task 4 onward), Vitest's default parallel file execution races multiple concurrent `astro build` runs against the same `dist/` directory. Add `vitest.config.ts` at the repo root with `test: { fileParallelism: false }` to force test files to run sequentially.
|
||||
|
||||
- [ ] **Step 2: Run the test and confirm it fails**
|
||||
|
||||
Run: `npm run test -- tests/seo-theme.test.ts`
|
||||
|
||||
Reference in New Issue
Block a user