forked from kentcdodds/testing-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.js
More file actions
25 lines (22 loc) · 677 Bytes
/
Copy pathverify.js
File metadata and controls
25 lines (22 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* eslint-disable */
var verifySystem = require('./workshop-setup').verifySystem
var verifyPromise = verifySystem([
verifySystem.validators.node('>=8.9.4'),
verifySystem.validators.npm('>=5.6.0')
])
verifyPromise.then(
function() {
// resolves if there are no errors
console.log('🎉 Congrats! Your system is setup properly')
console.log('You should be good to install and run things.')
},
function(error) {
// rejects if there are errors
console.error(error)
console.info(
"\nIf you don't care about these warnings, go " +
'ahead and install dependencies with `node ./scripts/install`'
)
process.exitCode = 1
}
)