# hjemmesnekret

> (Simple) proof of concept testing framework to profile other tests frameworks. Same interface as `jest` to make it easy to switch to.

Latest version **0.2.5** (published 2022-10-29) · ??? license · 0 weekly downloads

## Install

```sh
npm install hjemmesnekret
pnpm add hjemmesnekret
yarn add hjemmesnekret
bun add hjemmesnekret
```

Provides the command `hjemmesnekret-run`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2022-10-29 |
| First published | 2022-10-29 |
| Weekly downloads | 0 |
| License | ??? |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 40.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | github.com/2xic |
| Maintainers | 2xic |

## Links

- npm: https://www.npmjs.com/package/hjemmesnekret
- Homepage: https://github.com/2xic/hjemmesnekret
- npm.io page: https://npm.io/package/hjemmesnekret

## Dependencies (5)

- [glob](https://npm.io/package/glob.md) ^8.0.3
- [dayjs](https://npm.io/package/dayjs.md) ^1.11.6
- [typescript](https://npm.io/package/typescript.md) ^4.8.4
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.1.0
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13

## Recent versions

- 0.2.5 (latest) — 2022-10-29
- 0.2.4 — 2022-10-29
- 0.2.3 — 2022-10-29
- 0.2.2 — 2022-10-29
- 0.2.1 — 2022-10-29
- 0.2.0 — 2022-10-29
- 0.1.1 — 2022-10-29
- 0.1.0 — 2022-10-29

## README

## Hjemmesnekret

(Simple) proof of concept testing framework to profile other tests frameworks. Same interface as `jest` to make it easy to switch to.

# Speed vs jest
Here is the time difference for running all tests in [tinyeth](https://github.com/2xic/tinyeth) between hjemmesnekret and jest.

Jest does some cacheing, and that's why the speed decreases after the first run for jest.

![results](plot-data/plot.png)

# Functionality
- describe, it, beforeEach, beforeAll
- expect
  - toBeTruthy
  - toHaveLength
  - toBeInstanceOf
  - toBe
  - toBeDefined
  - toBeUndefined
  - toBeLessThan
  - toBeLessThanOrEqual
  - toBeGreaterThanOrEqual
  - toBeGreaterThan
  - toContain
  - toContainEqual
  - toEqual
  - toMatchObject
  - toBeFalsy
  - toThrowError
  - toThrow
  - rejects and resolves


# TODO
Some features I still want to add.

- `jest timer`
- `inline snapshot`
- Add object differ, and improved error messages
- Add a real stacktrace with support for js.map

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