# jest-url-matchers

> A Collection of Jest matchers for URLs

Latest version **0.1.2** (published 2022-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install jest-url-matchers
pnpm add jest-url-matchers
yarn add jest-url-matchers
bun add jest-url-matchers
```

## 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.1.2 |
| Published | 2022-12-23 |
| First published | 2022-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Brendan Ingham |
| Maintainers | b.ingham |
| Keywords | jest, testing |

## Links

- npm: https://www.npmjs.com/package/jest-url-matchers
- Repository: https://github.com/breningham/jest-url-matchers
- Homepage: https://github.com/breningham/jest-url-matchers#readme
- Issues: https://github.com/breningham/jest-url-matchers/issues
- npm.io page: https://npm.io/package/jest-url-matchers

## 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.1.2 (latest) — 2022-12-23
- 0.1.1 — 2022-12-23
- 0.1.0 — 2022-12-22

## README

# jest-url-matchers

A little library with some jest matchers for working with and validating URL's

## Installation

- Install with npm or yarn

```bash
$ npm install --save-dev jest-url-matchers
# $ yarn add --dev jest-url-matchers
```

- Set up the types in the `tsconfig.json`/`tsconfig.spec.json`

```json5
    {
        // ...rest of the file
        "types": ["jest", "node", "jest-url-matchers/types" ]
    }
```

- import at the top of your `jest.setup.ts`;

```typescript
import 'jest-url-matchers'
```

## Usage

```typescript
    # In your write your tests like this: 
    expect("https://www.google.com?s=search+query").toHaveQueryString("s");
```

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