# @deno/shim-deno-test

> Deno.test only shim.

Latest version **0.5.0** (published 2023-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @deno/shim-deno-test
pnpm add @deno/shim-deno-test
yarn add @deno/shim-deno-test
bun add @deno/shim-deno-test
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2023-11-13 |
| First published | 2022-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 28 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 160 |
| Author | The Deno authors |
| Maintainers | divy-work, kt3k, ry, dsherret |
| Keywords | shim, deno, test, node.js |

## Links

- npm: https://www.npmjs.com/package/@deno/shim-deno-test
- Repository: https://github.com/denoland/node_deno_shims
- Homepage: https://github.com/denoland/node_deno_shims#readme
- Issues: https://github.com/denoland/node_deno_shims/issues
- npm.io page: https://npm.io/package/@deno/shim-deno-test

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.5.0 (latest) — 2023-11-13
- 0.4.0 — 2022-11-23
- 0.3.3 — 2022-07-04
- 0.3.2 — 2022-02-14
- 0.3.1 — 2022-02-14
- 0.3.0 — 2022-02-05
- 0.2.0 — 2022-01-07
- 0.1.0 — 2022-01-07

## README

# @deno/shim-deno-test

Subset of [@deno/shim-deno](https://www.npmjs.com/package/@deno/shim-deno) for
only `Deno.test`.

```ts
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.

---
_Source: https://npm.io/package/@deno/shim-deno-test · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
