UNPKG

1.29 kBPlain TextView Raw
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
27export * from './client';
28export * from './expect';
29export * from './http-error-logger';
30export * from './http-server-config';
31export * from './request';
32export * from './shot';
33export * from './sinon';
34export * from './skip';
35export * from './test-sandbox';
36export * from './to-json';
37export * from './validate-api-spec';