diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-07-16 16:39:09 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-07-16 16:39:09 +0200 |
| commit | decd8e9e3d98d79b33c56e1c1a53e11fb5047c4a (patch) | |
| tree | 70e4c86900f0a2363036d47f440e3269ecff02fb /async/features/support/hooks.js | |
| parent | ef41c7d7884fa4fae8b6eba53d8fab0f584a97cf (diff) | |
| download | cucumber-js-demo-decd8e9e3d98d79b33c56e1c1a53e11fb5047c4a.tar.gz | |
Use node assertions as standard solution
Diffstat (limited to 'async/features/support/hooks.js')
| -rw-r--r-- | async/features/support/hooks.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/async/features/support/hooks.js b/async/features/support/hooks.js index 00ac749..de7c41a 100644 --- a/async/features/support/hooks.js +++ b/async/features/support/hooks.js @@ -1,16 +1,13 @@ import { BeforeAll, AfterAll } from '@cucumber/cucumber' -import express from 'express' +import { createServer } from 'node:http' let server BeforeAll(function () { - const app = express() - - app.get('/', (req, res) => { - res.send('Alea iacta est') + server = createServer(function (request, response) { + response.end('Alea iacta est') }) - - server = app.listen(8080) + server.listen(8080) }) AfterAll(function () { |
