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

Testing guidance #57

Open
jahsome opened this issue Apr 26, 2021 · 1 comment
Open

Testing guidance #57

jahsome opened this issue Apr 26, 2021 · 1 comment

Comments

@jahsome
Copy link

jahsome commented Apr 26, 2021

This starter is fantastic. Thank you for the hard work you've put into the project as as the documentation.

I don't see any docs for testing. What are the options here. I've tried running cypress against http://localhost:8080 but it doesn't appear the application is properly bootstrapped. Additionally when I try to go to that URL with my browser, it returns a white screen (empty response).

So the question is, what is the strategy for testing an application bootstrapped with this template?

@ci010
Copy link
Owner

ci010 commented May 7, 2021

I can try to add some testing framework like jest later. Testing frameworks are always heavy... Especially those in-browser e2e framework, so I'll try to investigate some other way for electron.

Also, the renderer side host (localhost:8080) is only worked in electron environment. Opening it in browser will cause problem.
Unless you create some bridge API, mimic the APIs in preload.ts.

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

No branches or pull requests

2 participants