-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (23 loc) · 690 Bytes
/
index.js
File metadata and controls
28 lines (23 loc) · 690 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
26
27
28
/* eslint arrow-body-style: "off" */
const { childService, requestSteps, responseSteps } = require('cukelib');
module.exports = function () {
childService.initialize.call(this);
requestSteps.call(this, {
host: 'http://localhost:3001'
});
responseSteps.call(this);
this.Before(() => {
return childService.spawn({
name: 'echo_server',
cmd: 'node',
args: [`${__dirname}/../../index.js`, '--port=3001'],
});
});
};
// Boilerplate to make this file compatible with cucumber versions 1 or 2
const cucumber = require('cucumber');
if (cucumber.defineSupportCode) {
cucumber.defineSupportCode((context) => {
module.exports.call(context);
});
}