Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve testing - vitest @playwright/test @vue/test-utils #252

Merged
merged 12 commits into from
Jun 6, 2023
Merged

Conversation

nwittwer
Copy link
Collaborator

@nwittwer nwittwer commented Jun 4, 2023

  • Added vitest and @playwright/test
    • vitest for running Nuxt/Vue/Pinia tests (e.g. testing Pinia stores or unit tests)
    • @vue/test-utils for future component-level tests* (*needs work—currently it freaks out about Electron-related things; doesn't know it will run inside electron-renderer)
    • @playwright/test for E2E tests in the built app
      • NOTE: Currently is hard-coded to a manual Mac build path; but it should be dynamic based on user's platform otherwise would fail when testing in CI on Windows
  • Added test for SiteTree (unit test of Pinia store + partial E2E test)
  • Simplified Github workflows + added unit test running in Github Actions

@nwittwer nwittwer merged commit 77357c1 into dev Jun 6, 2023
@nwittwer nwittwer deleted the tests branch June 6, 2023 07:34
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.

1 participant