Skip to content

OliverJAsh/any-http-integration-test-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnyHTTP Integration Test Helpers

Example usage:

import { createStubServer, closeStubServer } from 'any-http-integration-test-helpers';

describe('Http integration', () => {
    afterEach(closeStubServer);

    it('should make the request and resolve if the response has a good status code', () =>
        createStubServer({ status: 200, headers: {}, body: 'foo' })
            .then(() => {
                // …
            }));
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published