0.0.2 • Published 7 years ago

jest-environment-artillery v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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