• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

strongloop / loopback-datasource-juggler
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: fix-deprecated-pkgs
DEFAULT BRANCH: master
Repo Added 30 Aug 2017 12:15PM UTC
Files 36
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feat/reset-datasource
branch: feat/reset-datasource
CHANGE BRANCH
x
Reset
  • feat/reset-datasource
  • 3.x
  • 3.x-backport-1874
  • 3.x-downstream
  • 3.x-travis
  • 3.x-update-ts
  • 3x/defaultValueHandling
  • 3x/list-format
  • 3x/type-sub-property
  • add-datasource-tests
  • allow-flags-in-options
  • backport-atomic-upsert
  • chg-downstream
  • chore/add-node-12
  • chore/add-node-12-3x
  • chore/improve-issue-templates
  • chore/oracle-fielnames
  • codeowner
  • contributing
  • contributing2
  • control-pr
  • copyright
  • copyrights
  • datasource-event-type
  • deprecated-idcol
  • discover-naming
  • discussion
  • dremond_3.x_migrate_errors
  • dremond_migrate_errors
  • drop-bluebird
  • embedded-parent2
  • embedsMany/optional-default
  • enable/coveralls
  • eol
  • eslint/use-const-not-var
  • exclude-hidden-properties-from-where
  • feat/chunked-all-cb
  • feat/datasource-stop
  • feat/defaultValueHandling
  • feat/ds-begintransaction
  • feat/execute
  • feat/execute-db-command
  • feat/fix-observer-api
  • feat/ignore-matching-default
  • feat/ignore-matching-default-3.x
  • feat/lb4-operation-hooks
  • feat/memory-connector-index
  • feat/nested-applyDefaultOnWrites
  • feat/nested-applyDefaultOnWrites-3.x
  • feat/type-sub-property
  • feature/correct-model-ctor-name
  • feature/custom-defaults
  • feature/relation-properties
  • feature/remove-model
  • fix-1645
  • fix-1646
  • fix-1651
  • fix-4028
  • fix-ci
  • fix-datasource-getmodel-typing
  • fix-ds-constructor
  • fix-lazy-connect
  • fix-list
  • fix-list-of-class-instances
  • fix-ts-defs
  • fix-types/datasource-migrate
  • fix/PK-coercion-in-replaceById
  • fix/add-index
  • fix/add-index-for-couchdb
  • fix/apply-updates-from-hooks
  • fix/begintransaction-api
  • fix/coerce-or-operator
  • fix/datasource-typings
  • fix/datestring-ctor
  • fix/datestring-ctor-3x
  • fix/default-value-in-response
  • fix/default-value-in-response-3x
  • fix/destroyall
  • fix/failing-tests
  • fix/git-file
  • fix/git-file-4
  • fix/hooks-with-near-queries
  • fix/hooks-with-near-queries-3x
  • fix/include-crash-3x
  • fix/include-test
  • fix/include-test-3.x
  • fix/list-format
  • fix/listener-type
  • fix/migrate-errors
  • fix/migrate-single-model
  • fix/modification-of-datasource-config
  • fix/near-filter-cb
  • fix/nested-property-coercion
  • fix/nested-property-coercion-4x
  • fix/nested-property-resolution
  • fix/phantomjs
  • fix/postgresql
  • fix/primitive-datatypes-coercion-3x
  • fix/stop-typings
  • fix/type-defs
  • fix/types
  • fix/typings
  • fix/typo
  • fix/update-apidocs-file-list
  • fix_geo_2.x
  • fk-update-fix
  • getMaxListeners
  • globalize
  • good-first-issues-are-not-stale
  • improve-listener-signature
  • improve/github-templates
  • issue-1622-3x
  • juggler-fix
  • kv-types
  • license
  • make-test-output-concise
  • master
  • mem-connector-fix
  • memory/throw-on-malformed-types
  • nested/fields
  • optimized-findbyid
  • pr-template
  • readme
  • reduce-identifier-length-3.x
  • reduce-identifier-length-4.x
  • relational-strict
  • set-default-remote-options
  • start-4.0
  • temp
  • temp-3.x
  • temp/trigger-downstream-builds-3x
  • temp/trigger-downstream-builds-4x
  • template
  • test-3.x-downstream
  • test-ci
  • test-ci-tv
  • test/db2
  • test/filter-undefined-property
  • test/fix-default-values
  • test/master
  • test/related-fix
  • tidy-up-tests
  • travis-8
  • truongminh-set-datasource-name
  • ts-definitions
  • types/execute-nosql
  • update-codeowner
  • update-deps
  • update-dev
  • update-eslint
  • update-eslint-config
  • update-lts
  • update-lts-3x
  • update-lts-status
  • update-node-versions
  • update-nyc
  • update-strong-globalize
  • update-uuid
  • update/dependency-lodash
  • update/ds-declaration-file
  • upgrade-deps
  • upgrade-eslint-config
  • upgrade-eslint-config-3x
  • v3.12.0
  • v3.13.0
  • v3.14.0
  • v3.15.0
  • v3.15.1
  • v3.15.2
  • v3.15.3
  • v3.15.4
  • v3.15.5
  • v3.16.0
  • v3.17.0
  • v3.18.0
  • v3.18.1
  • v3.19.0
  • v3.20.0
  • v3.20.1
  • v3.20.2
  • v3.21.0
  • v3.21.1
  • v3.22.0
  • v3.22.1
  • v3.22.2
  • v3.24.0
  • v3.24.1
  • v3.25.0
  • v3.25.1
  • v3.25.2
  • v3.26.0
  • v3.26.1
  • v3.27.0
  • v3.28.0
  • v3.29.0
  • v3.29.1
  • v3.29.2
  • v3.30.0
  • v3.31.0
  • v3.31.1
  • v3.33.0
  • v3.33.1
  • v3.33.2
  • v3.34.0
  • v3.35.0
  • v3.36.0
  • v3.36.1
  • v4.0.0
  • v4.1.0
  • v4.1.1
  • v4.1.2
  • v4.10.0
  • v4.10.1
  • v4.11.0
  • v4.12.0
  • v4.12.1
  • v4.13.0
  • v4.14.0
  • v4.15.0
  • v4.16.0
  • v4.17.0
  • v4.18.0
  • v4.18.1
  • v4.19.0
  • v4.19.1
  • v4.19.2
  • v4.2.0
  • v4.2.1
  • v4.20.0
  • v4.20.1
  • v4.21.0
  • v4.21.1
  • v4.21.2
  • v4.22.0
  • v4.23.0
  • v4.24.0
  • v4.25.0
  • v4.26.0
  • v4.3.0
  • v4.4.0
  • v4.5.0
  • v4.5.2
  • v4.5.3
  • v4.5.4
  • v4.6.0
  • v4.6.1
  • v4.6.2
  • v4.6.3
  • v4.6.4
  • v4.7.1
  • v4.8.0
  • v4.8.1
  • v4.8.2
  • v4.9.0
  • v5.0.0
  • welcome-lehni
  • welcome-nitro404
  • welcome-zbarbuto

pending completion
5351

Pull #1759

travis-ci

web-flow
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>
Pull Request #1759: feat: add DataSource.reset() API

4490 of 5608 branches covered (80.06%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

7087 of 8081 relevant lines covered (87.7%)

2773.76 hits per line

Relevant lines Covered
Build:
Build:
8081 RELEVANT LINES 7087 COVERED LINES
2773.76 HITS PER LINE
Source Files on feat/reset-datasource
  • List 0
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
5351 feat/reset-datasource 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 re... Pull #1759 18 Jul 2019 03:59PM UTC web-flow travis-ci pending completion  
5350 feat/reset-datasource 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 re... push 18 Jul 2019 03:58PM UTC bajtos travis-ci pending completion  
5348 feat/reset-datasource feat: add DataSource.reset() 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 sa... push 18 Jul 2019 02:53PM UTC bajtos travis-ci pending completion  
5349 feat/reset-datasource feat: add DataSource.reset() 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 sa... Pull #1759 18 Jul 2019 02:53PM UTC web-flow travis-ci pending completion  
5347 feat/reset-datasource feat: add DataSource.reset() 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 sa... Pull #1759 18 Jul 2019 02:39PM UTC web-flow travis-ci pending completion  
5346 feat/reset-datasource feat: add DataSource.reset() 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 sa... push 18 Jul 2019 02:38PM UTC bajtos travis-ci pending completion  
See All Builds (1395)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc