1. @deno/shim-deno-test
Deno.test only shim.
@deno/shim-deno-test
Package: @deno/shim-deno-test
Created by: denoland
Last modified: Mon, 04 Dec 2023 20:19:59 GMT
Version: 0.5.0
License: MIT
Downloads: 104,449
Repository: https://github.com/denoland/node_deno_shims

Install

npm install @deno/shim-deno-test
yarn add @deno/shim-deno-test

@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.

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code