1 | // Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
2 | // Node module: @loopback/testlab
|
3 | // This file is licensed under the MIT License.
|
4 | // License text available at https://opensource.org/licenses/MIT
|
5 |
|
6 | /**
|
7 | * A collection of test utilities we use to write LoopBack tests.
|
8 | *
|
9 | * @remarks
|
10 | * Test utilities to help write LoopBack 4 tests:
|
11 | *
|
12 | * - `expect` - behavior-driven development (BDD) style assertions
|
13 | * - `sinon`
|
14 | * - test spies: functions recording arguments and other information for all
|
15 | * of their calls
|
16 | * - stubs: functions (spies) with pre-programmed behavior
|
17 | * - mocks: fake methods (like spies) with pre-programmed behavior
|
18 | * (like stubs) as well as pre-programmed expectations
|
19 | * - Helpers for creating `supertest` clients for LoopBack applications
|
20 | * - HTTP request/response stubs for writing tests without a listening HTTP
|
21 | * server
|
22 | * - Swagger/OpenAPI spec validation
|
23 | *
|
24 | * @packageDocumentation
|
25 | */
|
26 |
|
27 | export * from './client';
|
28 | export * from './expect';
|
29 | export * from './http-error-logger';
|
30 | export * from './http-server-config';
|
31 | export * from './request';
|
32 | export * from './shot';
|
33 | export * from './sinon';
|
34 | export * from './skip';
|
35 | export * from './test-sandbox';
|
36 | export * from './to-json';
|
37 | export * from './validate-api-spec';
|