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

Setup unit and e2e tests #29

Closed
pawcoding opened this issue Jan 26, 2025 · 1 comment · Fixed by #30
Closed

Setup unit and e2e tests #29

pawcoding opened this issue Jan 26, 2025 · 1 comment · Fixed by #30
Assignees
Labels
priority/medium [internal] This is not a priority right now but will be done eventually type/test Add or update test cases

Comments

@pawcoding
Copy link
Owner

Setup unit tests for isolated atomic functions (mostly utilities) and integration / e2e tests for logic communicating with PocketBase directly. Both tests can be done using Vitest.

Requirements

  • Testcases
    • Unit tests for atomic functions
    • E2E tests for PocketBase communication
  • Setup
    • Run tests inside GitHub Actions before publishing a release to npm
    • Unit tests are isolated, requiring no additional setup
    • E2E tests have to send requests to PocketBase, requiring an (up-to-date) instance of PocketBase running inside GitHub Actions
@pawcoding pawcoding added priority/medium [internal] This is not a priority right now but will be done eventually type/test Add or update test cases labels Jan 26, 2025
@pawcoding pawcoding self-assigned this Jan 26, 2025
@pawcoding pawcoding mentioned this issue Jan 26, 2025
@pawcoding pawcoding linked a pull request Jan 26, 2025 that will close this issue
@pawcoding
Copy link
Owner Author

Closed via:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/medium [internal] This is not a priority right now but will be done eventually type/test Add or update test cases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant