Skip to content

Commit afccd0d

Browse files
docs(test-utils): fix package name in readme (#2338)
looks like this was renamed from test-utils to contrib-test-utils a few years back but the readme still uses the old name.
1 parent 5f2c160 commit afccd0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/opentelemetry-test-utils/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Since [root hook plugin](https://mochajs.org/#root-hook-plugins) are used, this
2828
1. Add dev dependency on this package:
2929

3030
```sh
31-
npm install @opentelemetry/test-utils --save-dev
31+
npm install @opentelemetry/contrib-test-utils --save-dev
3232
```
3333

3434
1. [`require`](https://mochajs.org/#-require-module-r-module) this package in mocha invocation:
@@ -37,22 +37,22 @@ As command line argument option to mocha:
3737

3838
```js
3939
"scripts": {
40-
"test": "mocha --require @opentelemetry/test-utils",
41-
"test:jaeger": "OTEL_EXPORTER_JAEGER_AGENT_HOST=localhost mocha --require @opentelemetry/test-utils",
40+
"test": "mocha --require @opentelemetry/contrib-test-utils",
41+
"test:jaeger": "OTEL_EXPORTER_JAEGER_AGENT_HOST=localhost mocha --require @opentelemetry/contrib-test-utils",
4242
},
4343
``
4444

4545
Or by using config file / package.json config:
4646
```js
4747
"mocha": {
48-
"require": [ "@opentelemetry/test-utils" ]
48+
"require": [ "@opentelemetry/contrib-test-utils" ]
4949
}
5050
```
5151

5252
1. In your `.spec` file, import `registerInstrumentationTesting` and `getTestSpans` functions and use them to create instrumentation class instance and make assertions in the test:
5353

5454
```js
55-
import { getTestSpans, registerInstrumentationTesting } from '@opentelemetry/test-utils';
55+
import { getTestSpans, registerInstrumentationTesting } from '@opentelemetry/contrib-test-utils';
5656
5757
const instrumentation = registerInstrumentationTesting(new MyAwesomeInstrumentation());
5858

0 commit comments

Comments
 (0)