loopback-datasource-juggler/test
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
..
fixtures/loopback-connector-throwing chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
helpers chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
kvao chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
operation-hooks.suite chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
CustomTypeForeignKey.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
allow-extended-operators.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
async-observer.test.js feat: after operation hook in case of errors 2019-05-31 17:12:42 +02:00
basic-querying.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
common.batch.js Fix manually 2016-08-22 19:20:12 -04:00
common_test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
crud-with-options.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
datasource.test.js feat: add DataSource.deleteAllModels() API 2019-07-18 17:56:41 +02:00
datatype.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
date-string.test.js Fix DateString ctor to accept DateString instances 2019-05-13 15:21:00 +02:00
default-scope.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
defaults.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
discovery.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
exclude-base-props.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
geo.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
hooks.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
include.test.js test: add property index to support cloudant (#1750) 2019-06-19 14:36:48 -04:00
include_util.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
init.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
introspection.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
json.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
kv-memory.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
kvao.suite.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
list.test.js autofix eslint errors 2018-12-07 16:46:15 +01:00
loopback-data.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
loopback-dl.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
manipulation.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
memory.test.js Test "near" queries executed in memory 2019-05-14 09:14:10 +02:00
mixins.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
mocha.opts Configure Mocha to use dot reporter 2018-07-10 12:11:46 +02:00
mock-connectors.js Fix manually 2016-08-22 19:20:12 -04:00
model-builder.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-definition.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-inheritance.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-utils.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
normalize-undefined.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
optional-validation.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
performance.coffee Reformat the code 2014-01-24 09:09:53 -08:00
persistence-hooks.suite.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
relations.test.js Fix for #1724 - Added options to attribute updates (#1725) 2019-05-27 09:49:46 -04:00
schema.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
scope.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
spec_helper.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
test1-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
test2-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
transaction.test.js feat: add beginTransaction API on datasource 2019-06-28 12:58:50 -04:00
transient.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
util.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
validations.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00