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 Jest-based snapshot testing and Travis #40

Merged
merged 1 commit into from
May 7, 2017
Merged

Conversation

domenic
Copy link
Member

@domenic domenic commented May 6, 2017

Previously we were just kind of running test/test.js as needed and hoping for the best. With this in place we have an easier way of checking for regressions.

Let's get Travis running on the PR first...

@domenic domenic force-pushed the jest-snapshotting branch 2 times, most recently from fbecf90 to 2551c32 Compare May 6, 2017 20:16
.travis.yml Outdated
on_failure: always

script:
- npm test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be the default so not needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I guess I was copying it from somewhere where we also had npm run lint


branches:
only:
- master
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be needed either. It's not the default but I don't think it's necessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should reduce the double travis-build in PRs on direct branches.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah never mind then.

Previously we were just kind of running test/test.js as needed and hoping for the best. With this in place we have an easier way of checking for regressions.
@domenic domenic merged commit 0f89e7b into master May 7, 2017
@domenic domenic deleted the jest-snapshotting branch May 7, 2017 09:58
stevedorries pushed a commit to stevedorries/webidl2js that referenced this pull request Jan 27, 2020
stevedorries pushed a commit to stevedorries/webidl2js that referenced this pull request Jan 27, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants