git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: e23c5cb495edb5b4ada643232130eb307334ad7f

Files: e23c5cb495edb5b4ada643232130eb307334ad7f / app / features.js

560 bytesRaw
1const cuke = require('cuke-tap')
2const path = require('path')
3const glob = require('glob')
4const parallel = require('run-parallel')
5
6parallel([
7 function (cb) {
8 glob('@(features/*.feature|*/index.feature|*/features/*.feature)', cb)
9 },
10 function (cb) {
11 glob('@(features/steps.js|*/steps.js|*/features/steps.js)', cb)
12 }
13], function (err, results) {
14 if (err) { throw err }
15
16 const features = results[0]
17 const steps = results[1].map(function (file) {
18 return require(file)
19 })
20
21 if (features.length > 0) {
22 cuke(features, steps)
23 }
24})
25
26

Built with git-ssb-web