https://github.com/danielmschmidt/jest-environment-artillery
A jest environment for running load tests on your application.
https://github.com/danielmschmidt/jest-environment-artillery
Last synced: 12 months ago
JSON representation
A jest environment for running load tests on your application.
- Host: GitHub
- URL: https://github.com/danielmschmidt/jest-environment-artillery
- Owner: DanielMSchmidt
- Created: 2018-04-30T07:07:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-06-21T23:57:26.000Z (12 months ago)
- Last Synced: 2025-06-22T00:27:52.907Z (12 months ago)
- Language: JavaScript
- Size: 211 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jest-Environment-Artillery
A jest environment for running load tests on your application.
## Status
* [x] Base Setup for developig a jest environment with typescript
* [ ] Expose `artillery` wrapper
* [ ] Expose expectation helpers
* [ ] Write integration tests
* [ ] Release version `0.1.0`
## Installation
* Make sure jest is set up properly
* run `npm install --save-dev artillery jest-environment-artillery`
* [Configure `jest-environment-artillery` as test environment](https://facebook.github.io/jest/docs/en/configuration.html#testenvironment-string)
## Usage
```js
describe("MyService", () => {
describe("Performance", () => {
it("has a limit for latency", async () => {
const testResult = await artillery({ target: "https://artillery.io" });
expect(testResult).toHaveMaxLatencyLowerThan(1000);
expect(testResult).toHaveMedianLatencyLowerThan(200);
});
});
});
```