Socket
Socket
Sign inDemoInstall

@deno/shim-deno-test

Package Overview
Dependencies
0
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @deno/shim-deno-test

Deno.test only shim.


Version published
Weekly downloads
27K
increased by2.66%
Maintainers
4
Install size
28.0 kB
Created
Weekly downloads
 

Readme

Source

@deno/shim-deno-test

Subset of @deno/shim-deno for only Deno.test.

import { Deno, test, testDefinitions } from "@deno/shim-deno-test";

Deno.test("some test", () => {
  // test here
});

// or
test("some other test", () => {
  // test here
});

// read from testDefinitions here
testDefinitions.length === 2;

Note - Not a Test Runner

This shim is not a test runner. It simply collects tests into the testDefinitions array. The idea is that you run a module that does Deno.test calls and then you splice out the test definitions from testDefinitions (ex. const definitions = testDefinitions.splice(0, testDefinitions.length)) and provide those to a test runner.

Keywords

FAQs

Last updated on 13 Nov 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc