New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kinshipjs/adapter-tests

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kinshipjs/adapter-tests

Adapter testing suite for custom adapters built for the Kinship ORM.

  • 0.2.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-95.24%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 08 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc