-
-
Notifications
You must be signed in to change notification settings - Fork 210
Open
Description
Hey,
wanted to try this to test how a API endpoint behaves under load, so I began reading some docs and reading some files.
I found this one puzzling:
https://github.com/alexfernandez/loadtest/blob/main/doc/api.md#start-test-server
To start the test server use the exported function startServer() with a set of options:
import {startServer} from 'loadtest'
const server = await startServer({port: 8000})
// do your thing
await server.close()
but for me loadtest does not give such function. I've installed 8.0.9.
Then I tried following https://github.com/alexfernandez/loadtest/blob/main/test/body-generator.js however, this used the startServer differently as shown in the docs. Because this test folder sits directly next to the library.
Soo.. what am I to do?
Metadata
Metadata
Assignees
Labels
No labels