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

Run e2e tests in CI with latest prebuilt backend binary #131

Merged
merged 8 commits into from
Dec 4, 2024

Conversation

thomasballinger
Copy link
Contributor

@thomasballinger thomasballinger commented Dec 4, 2024

Getting the old path of an open source backend directory wasn't temporarily broken so I hooked this up to prebuilt binaries.

Copy link

vercel bot commented Dec 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
convex-auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 11:25pm

Getting the old path of a backend directory was too much trouble, we
need convex-backend changes to make this work.
Copy link

pkg-pr-new bot commented Dec 4, 2024

npm i https://pkg.pr.new/get-convex/convex-auth/@convex-dev/auth@131

commit: df70184

@thomasballinger
Copy link
Contributor Author

thomasballinger commented Dec 4, 2024

I ran into issues with using with a convex monorepo or a convex-backend repo for testing:

  • with a convex/ repo, run-local-backend already has a --port flag so runs on 8000, can't be overridden with another --port flag
  • with a convex-backend repo, run-local-backend seems broken because the simulation project isn't present. This is temporary

@thomasballinger thomasballinger changed the title Run test with latest prebuilt backend binary. Run test with latest prebuilt backend binary Dec 4, 2024
@thomasballinger thomasballinger changed the title Run test with latest prebuilt backend binary Run e2e tests in CI with latest prebuilt backend binary Dec 4, 2024
Copy link
Collaborator

@dowski dowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, nice change.

@@ -15,7 +19,7 @@ you can skip to running the test command at the end.
CONVEX_LOCAL_BACKEND_PATH=/path/to/your/convex-backend npm run test
```

## The manual way
## The most manual way
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, love it!

test-nextjs/playwright.config.ts Outdated Show resolved Hide resolved
@thomasballinger thomasballinger merged commit c6dc7dd into main Dec 4, 2024
6 checks passed
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.

2 participants