loopback-datasource-juggler/types
Miroslav Bajtoš 78c5b12740
feat: add DataSource.deleteAllModels() API
When writing tests, for performance reasons we often want to reuse
the same data-source instance for many tests suites. At the same time,
we want to keep such test suites independent and allow them to reuse
the same model name for different model classes.

Juggler does support redefinition of a model with the same name.

This change is adding a new API called that allows tests to remove all
old models before creating new ones. This API would be typically
called from a `before` hook.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-07-18 17:56:41 +02:00
..
common.d.ts Fix types to describe native Promise 2019-06-13 15:24:01 +02:00
connector.d.ts chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
datasource.d.ts feat: add DataSource.deleteAllModels() API 2019-07-18 17:56:41 +02:00
inclusion-mixin.d.ts Add typescript type definitions 2018-05-09 12:47:27 -07:00
kv-model.d.ts fix: update TypeScript declaration for KV 2018-07-16 10:11:54 -07:00
model.d.ts chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
observer-mixin.d.ts Add typescript type definitions 2018-05-09 12:47:27 -07:00
persisted-model.d.ts Revert "chore: expose beginTransaction API" 2019-06-25 09:08:11 -04:00
query.d.ts Add typescript type definitions 2018-05-09 12:47:27 -07:00
relation-mixin.d.ts Add typescript type definitions 2018-05-09 12:47:27 -07:00
relation.d.ts Add typescript type definitions 2018-05-09 12:47:27 -07:00
scope.d.ts Add typescript type definitions 2018-05-09 12:47:27 -07:00
transaction-mixin.d.ts Add typescript type definitions 2018-05-09 12:47:27 -07:00
validation-mixin.d.ts Add typescript type definitions 2018-05-09 12:47:27 -07:00