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

No tests for front-end code #31

Open
finnhodgkin opened this issue Aug 3, 2017 · 6 comments
Open

No tests for front-end code #31

finnhodgkin opened this issue Aug 3, 2017 · 6 comments

Comments

@finnhodgkin
Copy link

You should still be writing tests for the front-end code.

This week was concentrated on Node so it's not so big a deal, but generally you should have tests for your front-end code as well as your backend.

@aajour
Copy link
Contributor

aajour commented Aug 3, 2017

can you please explain what you mean with front-end exactly?

@finnhodgkin
Copy link
Author

Front-end code is any javascript running in the browser.

So for this project index.js and svgs.js are front-end code.

@finnhodgkin
Copy link
Author

On a related note all tests should run on npm test. See:

FACG2/MarvelCode-Week4#22

@Walidmash
Copy link
Contributor

@finnhodgkin but we have 2 test files , one for the backend in src/test.js and we have one for the frontend in public/test.js

@finnhodgkin
Copy link
Author

That front-end test file wasn't merged until 9.04am - after I'd started code review and your team should have been reviewing another team's code.

@finnhodgkin
Copy link
Author

It also isn't linked in the package.json

All tests should run on npm test so people working on the project can easily check they haven't broken something elsewhere in the app.

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

3 participants