Skip to content

Commit 95f3ca8

Browse files
TG199mark-wiemer
andauthored
docs: migrate assertion libraries wiki link to main docs (#5442)
Co-authored-by: Mark Wiemer <[email protected]>
1 parent c6c6740 commit 95f3ca8

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

docs-next/astro.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ export default defineConfig({
120120
label: "Node.js native ESM support",
121121
slug: "explainers/nodejs-native-esm-support",
122122
},
123+
{
124+
label: "Related tools",
125+
slug: "explainers/related-tools",
126+
},
123127
{
124128
label: "Run cycle overview",
125129
slug: "explainers/run-cycle-overview",
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
description: External tools and libraries that work well with Mocha
3+
title: Related tools
4+
---
5+
6+
# Related Tools
7+
8+
## Assertion Libraries
9+
10+
+- [unexpected](https://unexpectedjs.github.io/) - extensible BDD assertion toolkit
11+
+- [chai](http://chaijs.com/) - expect(), assert() and should style assertions *recommended*
12+
+- [earl](https://earl.fun/) - ergonomic, modern and type-safe assertion library for TypeScript
13+
14+
## Mocks, Stubs & Spies
15+
16+
+- [sinon.js](https://sinonjs.org/) - Test spies, stubs and mocks for JavaScript.
17+
+- [nock](https://github.com/nock/nock) - HTTP mocking and expectations library.

docs/api-tutorials/jsdoc.tutorials.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"custom-reporter": {
66
"title": "Create a Custom Reporter"
77
},
8-
"find-global-leaks": {
9-
"title": "Find global leaks"
8+
"related-tools": {
9+
"title": "Related tools"
1010
},
1111
"shared-behaviours": {
1212
"title": "Shared behaviours"

docs/api-tutorials/related-tools.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Related Tools
2+
3+
## Assertion Libraries
4+
5+
+- [unexpected](https://unexpectedjs.github.io/) - extensible BDD assertion toolkit
6+
+- [chai](http://chaijs.com/) - expect(), assert() and should style assertions *recommended*
7+
+- [earl](https://earl.fun/) - ergonomic, modern and type-safe assertion library for TypeScript
8+
9+
## Mocks, Stubs & Spies
10+
11+
+- [sinon.js](https://sinonjs.org/) - Test spies, stubs and mocks for JavaScript.
12+
+- [nock](https://github.com/nock/nock) - HTTP mocking and expectations library.

0 commit comments

Comments
 (0)