Skip to content

Add basic testing infrastructure#18

Open
danielart wants to merge 4 commits intomasterfrom
feature/basic-testing-4689204923763876674
Open

Add basic testing infrastructure#18
danielart wants to merge 4 commits intomasterfrom
feature/basic-testing-4689204923763876674

Conversation

@danielart
Copy link
Copy Markdown
Owner

This PR introduces a basic testing infrastructure to the project.

Key changes:

  • Unit Testing: Integrated Vitest. Added tests for src/utils/slugify.ts and src/utils/postFilter.ts to ensure core logic remains stable.
  • End-to-End Testing: Integrated Playwright. Added a smoke test for the homepage and navigation links.
  • Configuration: Added vitest.config.ts (with path alias support) and playwright.config.ts (with automated dev server management).
  • Scripts: Added test, test:unit, and test:e2e scripts to package.json.
  • Maintenance: Updated .gitignore to exclude playwright-report/ and test-results/ directories.

Fixes #16


PR created automatically by Jules for task 4689204923763876674 started by @danielart

- Install Vitest for unit testing and Playwright for E2E testing.
- Add unit tests for `slugify` and `postFilter` utility functions.
- Add E2E tests for homepage and navigation.
- Configure `vitest.config.ts` and `playwright.config.ts`.
- Update `.gitignore` to exclude test artifacts.
- Add test scripts to `package.json`.

Co-authored-by: danielart <4655428+danielart@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules bot and others added 3 commits March 10, 2026 17:25
- Install Vitest for unit testing and Playwright for E2E testing.
- Add unit tests for `slugify` and `postFilter` utility functions.
- Add E2E tests for homepage and navigation.
- Configure `vitest.config.ts` and `playwright.config.ts`.
- Update `.gitignore` to exclude test artifacts.
- Add test scripts to `package.json`.
- Integrate testing into CI workflow and fix pnpm version conflict.

Co-authored-by: danielart <4655428+danielart@users.noreply.github.com>
- Install Vitest for unit testing and Playwright for E2E testing.
- Add unit tests for `slugify` and `postFilter` utility functions.
- Add E2E tests for homepage and navigation.
- Configure `vitest.config.ts` and `playwright.config.ts`.
- Update `.gitignore` to exclude test artifacts.
- Add test scripts to `package.json`.
- Integrate testing into CI workflow and fix pnpm version conflict.
- Fix linting errors in tests and Layout component.

Co-authored-by: danielart <4655428+danielart@users.noreply.github.com>
- Install Vitest for unit testing and Playwright for E2E testing.
- Add unit tests for `slugify` and `postFilter` utility functions.
- Add E2E tests for homepage and navigation.
- Configure `vitest.config.ts` and `playwright.config.ts`.
- Update `.gitignore` to exclude test artifacts.
- Add test scripts to `package.json`.
- Integrate testing into CI workflow and fix pnpm version conflict.
- Fix linting errors in tests and Layout component.
- Fix syntax error in Layout component and format codebase.

Co-authored-by: danielart <4655428+danielart@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: basic testing

1 participant