Skip to content

An API testing library with a fluent API similar to supertest and jest.

License

Notifications You must be signed in to change notification settings

RLaursen/Steam-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An API testing library with a fluent API similar to supertest and jest.

Designed for a specific API and according to very specific project requirements, but can be modified to suit other needs.

Zero dependencies.

Usage Example:

test('Test Name', function() {
    // Expect a 200 status code, a response containing 'value' at 'key',
    // and a string matching '/regex/' at 'key2'.
    request('endpoint', ['arg1' => 'value'])
        ->expect(200, ['key' => 'value', 'key2' => '/regex/']);
});

See modules for further documentation:

test()/test_group()/before_each()/after_each()/failing_test()

request()

About

An API testing library with a fluent API similar to supertest and jest.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages