Skip to content

Commit

Permalink
Seems like jest requires node.js 6+ now
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 17, 2018
1 parent 42b4a53 commit 49928aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ else
endif

test-jest-if-supported-node-version:
@node-version-gte-4 && make test-jest || echo Skipping, jest is unsupported with node $(shell node --version)
@node-version-gte-6 && make test-jest || echo Skipping, jest is unsupported with node $(shell node --version)

.PHONY: test
test: test-sources
Expand Down
4 changes: 2 additions & 2 deletions test/external.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ if (typeof process === 'object') {
});
});

// jest requires node.js 4 or above:
if (!/^v[0123]\./.test(process.version)) {
// jest requires node.js 6 or above:
if (!/^v[012345]\./.test(process.version)) {
describe('executed through jest', function() {
expect.addAssertion(
'<array|string> executed through jest <object?>',
Expand Down

0 comments on commit 49928aa

Please sign in to comment.