2024-12-19 23:54:35 +01:00
|
|
|
import { BeforeAll, AfterAll } from '@cucumber/cucumber'
|
2018-11-10 20:06:38 +01:00
|
|
|
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()
|
|
|
|
})
|