Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@datagrok/api-tests

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datagrok/api-tests

js-api-tests is a [package](https://datagrok.ai/help/develop/develop#packages) for the [Datagrok](https://datagrok.ai) platform.

  • 1.3.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by50%
Maintainers
6
Weekly downloads
 
Created
Source

js-api-tests

js-api-tests is a package for the Datagrok platform.

To add tests for Datagrok's JS API:

  1. Create a folder under src/ for your test files (each file typically includes tests for one category)
  2. Get the package dependencies (npm install)
  3. Import the required utilities (refer to other tests as an example):
import { category, expect, test } from '@datagrok-libraries/utils/src/test';
  1. Write some tests
  2. Import your test files in src/package-test.ts
  3. Publish the package
  4. Open Datagrok and start the console (~ or Windows | Console)
  5. Launch tests for a category via ApiTests:test(category="category-name"), e.g., ApiTests:test(category="Layouts"), or a specific test via ApiTests:test(category="category-name", test="test-name"), e.g., ApiTests:test(category="Layouts", test="ViewLayout.toJson()"), and wait for the results

FAQs

Package last updated on 07 Oct 2022

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