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

Test cases for express_mysql #28

Open
2 tasks
Abhinav-ark opened this issue Nov 2, 2024 · 7 comments
Open
2 tasks

Test cases for express_mysql #28

Abhinav-ark opened this issue Nov 2, 2024 · 7 comments
Labels
AMWOC BOUNTY-30 enhancement New feature or request feature Planned feature of software.

Comments

@Abhinav-ark
Copy link
Member

Abhinav-ark commented Nov 2, 2024

Todo:

  • Optimize test case execution time for express_mysql template.
  • Write tests to verify each api endpoint.
@Abhinav-ark Abhinav-ark changed the title Tests for express_mysql Test cases for express_mysql Nov 2, 2024
@Ashrockzzz2003 Ashrockzzz2003 added enhancement New feature or request feature Planned feature of software. labels Nov 2, 2024
@Ashrockzzz2003 Ashrockzzz2003 changed the title Test cases for express_mysql Test cases for express_mysql Nov 6, 2024
@priyansh-narang2308
Copy link
Contributor

priyansh-narang2308 commented Jan 17, 2025

Hey @Abhinav-ark, can i try this? will use jest and supertest test cases to verify all express_mysql endpoints and use connection pooling and proper mocks to optmize execution time..

@Ashrockzzz2003
Copy link
Member

@priyansh-narang2308

If it works with GItHub Actions, then yes. Assigning this to you @priyansh-narang2308.
Please come up with clean code under templates/express_mysql/api.test.js.

@priyansh-narang2308
Copy link
Contributor

Image
I have written the code for api.test.js using babel and jest
but encountering this error .
Is there any way i can solve this error

@Ashrockzzz2003
Copy link
Member

Ashrockzzz2003 commented Jan 23, 2025

@priyansh-narang2308
We're following ES style imports. Somewhere common js was used in your code. That's the reason.
Please raise a PR and update there on whatever you do instead of screenshots.

Just jest.mock won't work ig
I'm not sure
That could be a reason too

@priyansh-narang2308
Copy link
Contributor

Hey @Ashrockzzz2003 Sorry. I have tried many ways to solve this issue but it's like not working 😔. Can u pls unassign me this issue
Will try to solve some other issue in QSE 🙏🏻

@Ashrockzzz2003
Copy link
Member

It's alright @priyansh-narang2308
Let's keep it open, if I get an idea I'll drop. Even you drop when you get one.

@priyansh-narang2308
Copy link
Contributor

Yeah sure 👍🏻👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AMWOC BOUNTY-30 enhancement New feature or request feature Planned feature of software.
Projects
3 participants