jest-environment-artillery
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Jest-Environment-Artillery

A jest environment for running load tests on your application.

Installation

Usage

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);
    });
  });
});

Dependencies (1)

Dev Dependencies (7)

Package Sidebar

Install

npm i jest-environment-artillery

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

8.73 kB

Total Files

4

Last publish

Collaborators

  • dschmidt