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

Add tests #18

Open
sonianb opened this issue May 19, 2022 · 2 comments
Open

Add tests #18

sonianb opened this issue May 19, 2022 · 2 comments

Comments

@sonianb
Copy link
Collaborator

sonianb commented May 19, 2022

  • Test that user can add post and
  • post can be displayed
@sonianb sonianb mentioned this issue May 19, 2022
@mariaalouisaa
Copy link
Collaborator

Add:
after(() => { cy.task("resetDb"); });
at the end of the test.js file

@sonianb
Copy link
Collaborator Author

sonianb commented May 20, 2022

Tried that but still getting this error:

cy.task('resetDb') failed with the following error:

spawnSync ./scripts/populate_db ENOENT

Because this error occurred during a before each hook we are skipping all of the remaining test

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