-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathhydro.conf.js
53 lines (47 loc) · 836 Bytes
/
hydro.conf.js
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* Local dependencies.
*/
var server = require('./test/support/server');
var hippie = require('./');
/**
* Hippie factory.
*
* Return a new hippie instance with the base URL
* configured to the local test server.
*
* @returns {Hippie}
* @api public
*/
function api() {
return hippie().base('http://localhost:' + server.PORT);
}
/**
* Test setup.
*
* @param {Hydro} hydro
* @api public
*/
module.exports = function(hydro) {
hydro.set({
suite: 'hippie',
formatter: 'hydro-dot',
chai: {
styles: 'should',
stack: true
},
globals: {
api: api
},
plugins: [
'hydro-clean-stacks',
'hydro-bdd',
'hydro-chai',
],
tests: [
'test/*.test.js'
]
});
hydro.on('pre:all', function(_, done) {
server.listen(server.PORT, done);
});
};