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 a few tests for letra.js and options button #160

Merged
merged 5 commits into from
Jun 7, 2020

Conversation

tbarland77
Copy link
Contributor

I got bored and ended up writing a few tests already for #124. 😂 Noticed some interesting things while doing this... Looks like the code coverage reporter is not picking up anything in the components folder for the client. After doing some poking around jest appears to be ignoring these files because they have no methods.

Which leads me to my next question. Do you see value in template tests @jayehernandez? Almost all the tests I wrote for the options button involve the template. Checking to make sure a css class is there, testing a button click event, etc. These tests won't get reflected in the code coverage but I think they could still be useful tests. Was curious what your opinion on it might be?

@jayehernandez
Copy link
Owner

I do think there's still value in testing the templates! Mostly just to make sure that everything is still working the way that it's supposed to. As for Jest not covering these, it's probably okay for now.

@jayehernandez jayehernandez merged commit ab9ee4a into jayehernandez:master Jun 7, 2020
@jayehernandez jayehernandez linked an issue Jun 7, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🧪 Add Unit Test to Files with Jest
2 participants