You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
I prefer inline test files because it makes me care more about the tests but I don't mind either convention.
CI and Coverage Reporting
Do you have any preference for tools? I've only really used travis and coveralls but idk maybe those tools are out of style? I can defer to you to set that up but it we're testing we might as well talk about CI and coverage reporting
The text was updated successfully, but these errors were encountered:
Thanks @ricokahler, I don't mind any of these so please take the lead.
Most of the code in this repo is 'glue code', so I think end-to-end tests are more important, but I don't know how to write those kind of tests yet. Would it be a good idea to boot up a Gatsby site, then use Jest to compare the output snapshot does that make sense)?
I have had good experience with travis in the past!
Per our discussion here: #39 (comment)
We wanted to add tests with jest. I wanted to open this issue to track how we'll do that.
Here's a few questions:
Testing conventions
What conventions do you prefer?
it('blah', () => {})
ortest('blah', () => {})
?describe
or prefer to keep it?file.spec.ts
orfile.test.ts
?Separate: a
tests
folder next tosrc
at the root orInline: a test file in the same src folder?
I prefer inline test files because it makes me care more about the tests but I don't mind either convention.
CI and Coverage Reporting
Do you have any preference for tools? I've only really used travis and coveralls but idk maybe those tools are out of style? I can defer to you to set that up but it we're testing we might as well talk about CI and coverage reporting
The text was updated successfully, but these errors were encountered: