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 | */
|
21 | export * from './client';
|
22 | export * from './expect';
|
23 | export * from './http-error-logger';
|
24 | export * from './http-server-config';
|
25 | export * from './request';
|
26 | export * from './shot';
|
27 | export * from './sinon';
|
28 | export * from './skip';
|
29 | export * from './test-sandbox';
|
30 | export * from './to-json';
|
31 | export * from './validate-api-spec';
|