🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@datagrok/api-tests

Package Overview
Dependencies
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datagrok/api-tests

Automated tests for the [Datagrok JS API](https://datagrok.ai/js-api)

1.10.0
latest
Source
npm
Version published
Weekly downloads
41
-16.33%
Maintainers
6
Weekly downloads
 
Created
Source

ApiTests

ApiTests is a package for the Datagrok platform.

To add tests for Datagrok's JS API:

  • Create a folder under src/ for your test files (each file typically includes tests for one category)

  • Get the package dependencies (npm install)

  • Import the required utilities (refer to other tests as an example):

    import { category, expect, test } from '@datagrok-libraries/utils/src/test';
    
  • Write some tests

  • Import your test files in src/package-test.ts

  • Publish the package

  • Open Datagrok and start the console (~ or Windows | Console)

  • 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 29 Mar 2025

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