You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/content/docs/reference/test-consumer.md
+31-32
Original file line number
Diff line number
Diff line change
@@ -1,54 +1,53 @@
1
1
---
2
-
title: '@metrics/test-consumer'
2
+
title: "@metrics/test-consumer"
3
3
---
4
4
5
5
This module is a memory based consumer for metrics streams to be used in tests. The purpose of the module is to make writing tests and asserting metrics easier.
6
-
It takes a metric stream generated by @metrics/client and makes the collected metrics available as an array.
6
+
It takes a metric stream generated by [@metrics/client](/reference/client/) and makes the collected metrics available as an array.
7
7
8
-
⚠️ You should _never_ use this in produciton code, however it is very convenient when writing tests which produce metrics using [`@metrics/client`](https://metrics-js.github.io/reference/client/)
8
+
⚠️ You should _never_ use this in production code, however it is very convenient when writing tests which produce metrics using `@metrics/client`.
9
9
10
10
## Examples usage
11
11
12
12
Below is a sample test showing how this could be used:
0 commit comments