Skip to content

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

Merged
nwittwer merged 12 commits intodevfrom
tests
Jun 6, 2023
Merged

Improve testing - vitest @playwright/test @vue/test-utils#252
nwittwer merged 12 commits intodevfrom
tests

Conversation

@nwittwer
Copy link
Copy Markdown
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