21 lines
284 B
JavaScript
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()
|
|
})
|
|
|
|
|