Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@deno/shim-deno-test

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deno/shim-deno-test

Deno.test only shim.

latest
Source
npmnpm
Version
0.5.0
Version published
Weekly downloads
90K
-4.1%
Maintainers
4
Weekly downloads
 
Created
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

shim

FAQs

Package last updated on 13 Nov 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