🚀 DAY 3 OF LAUNCH WEEK: Introducing Webhook Events for Pull Request Scans.Learn more →
Socket
Book a DemoInstallSign in
Socket

@datagrok/api-tests

Package Overview
Dependencies
Maintainers
5
Versions
40
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)

latest
Source
npmnpm
Version
1.10.1
Version published
Maintainers
5
Created
Source

API Tests

API Tests 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 20 Oct 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