@kinshipjs/adapter-tests
TypeScript icon, indicating that this package has built-in type declarations

0.2.6 • Public • Published

Kinship Logo Title & Description

KinshipJS Adapter Tests

Testing suite for testing a custom adapter with Kinship.

Custom Adapter Development

Kinship is a database agnostic ORM thanks to the adapter support built in with it. While there are many adapters available, this suite guides you on how to build your own adapter as well as testing it so it is ready to be packaged and deployed.

Get Started

Install the necessary libraries

npm i @kinshipjs/core
npm i -D @kinshipjs/adapter-tests

Set up your database so it appears as the following:

image

NOTE: Avoid adding any constraints, as truncations of the tables occur, and if the SQL engine used prevents truncation for constraints, then the testAdapter function will never pass.

Serializing

Executing

Testing your Custom Adapter

Package Sidebar

Install

npm i @kinshipjs/adapter-tests

Weekly Downloads

1

Version

0.2.6

License

(MIT OR Apache-2.0)

Unpacked Size

117 kB

Total Files

6

Last publish

Collaborators

  • tzuleger3rt