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

@datagrok/api-tests

Package Overview
Dependencies
Maintainers
5
Versions
38
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.7.10
  • Source
  • npm
  • Socket score

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

ApiTests

ApiTests 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';
    
  4. Write some tests

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

  6. Publish the package

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

  8. 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 Aug 2023

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