UNPKG

1.06 kBTypeScriptView Raw
1/**
2 * A collection of test utilities we use to write LoopBack tests.
3 *
4 * @remarks
5 * Test utilities to help write LoopBack 4 tests:
6 *
7 * - `expect` - behavior-driven development (BDD) style assertions
8 * - `sinon`
9 * - test spies: functions recording arguments and other information for all
10 * of their calls
11 * - stubs: functions (spies) with pre-programmed behavior
12 * - mocks: fake methods (like spies) with pre-programmed behavior
13 * (like stubs) as well as pre-programmed expectations
14 * - Helpers for creating `supertest` clients for LoopBack applications
15 * - HTTP request/response stubs for writing tests without a listening HTTP
16 * server
17 * - Swagger/OpenAPI spec validation
18 *
19 * @packageDocumentation
20 */
21export * from './client';
22export * from './expect';
23export * from './http-error-logger';
24export * from './http-server-config';
25export * from './request';
26export * from './shot';
27export * from './sinon';
28export * from './skip';
29export * from './test-sandbox';
30export * from './to-json';
31export * from './validate-api-spec';