Update plugins/code-coverage-backend/README.md

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-10-23 14:28:27 +02:00
committed by GitHub
parent 8bdaf184ec
commit c5aa242ce3
-13
View File
@@ -74,20 +74,7 @@ The code coverage backend plugin has support for the [new backend system](https:
In your `packages/backend/src/index.ts` make the following changes:
```diff
import { createBackend } from '@backstage/backend-defaults';
+ import { codeCoveragePlugin } from '@backstage/plugin-code-coverage-backend';
const backend = createBackend();
// ... other feature additions
+ backend.add(codeCoveragePlugin());
backend.start();
```
Alternatively, you can actually remove the import line above, and do this instead.
```diff
backend.add(explorePlugin());
+ backend.add(import('@backstage/plugin-explore-backend'));
```
## Configuring your entity