1
0
cucumber-js-demo/async/features/support/hooks.js
2018-11-10 20:06:38 +01:00

21 lines
284 B
JavaScript

import { BeforeAll, AfterAll } from 'cucumber'
import express from 'express'
let server
BeforeAll(function () {
const app = express()
app.get('/', (req, res) => {
res.send('Alea iacta est')
})
server = app.listen(8080)
})
AfterAll(function () {
server.close()
})