From 3b5666e6598f5c56523e08a3eb7e0d0162fa55eb Mon Sep 17 00:00:00 2001 From: Karan Shah Date: Fri, 31 Dec 2021 16:01:40 +0000 Subject: [PATCH] Fix up template errors Signed-off-by: Karan Shah --- plugins/airbrake/package.json | 16 ++++++++-------- plugins/airbrake/src/plugin.test.ts | 23 +++++++++++++++++++++++ plugins/airbrake/src/plugin.test.tsx | 6 +----- yarn.lock | 20 +------------------- 4 files changed, 33 insertions(+), 32 deletions(-) create mode 100644 plugins/airbrake/src/plugin.test.ts diff --git a/plugins/airbrake/package.json b/plugins/airbrake/package.json index b49b2e3bac..86bcd8ff31 100644 --- a/plugins/airbrake/package.json +++ b/plugins/airbrake/package.json @@ -20,8 +20,8 @@ "clean": "backstage-cli clean" }, "dependencies": { - "@backstage/core-components": "^0.8.1", - "@backstage/core-plugin-api": "^0.3.1", + "@backstage/core-components": "^0.8.2", + "@backstage/core-plugin-api": "^0.4.0", "@backstage/theme": "^0.2.14", "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.9.1", @@ -35,15 +35,15 @@ "devDependencies": { "@types/object-hash": "^2.2.1", "@backstage/app-defaults": "^0.1.2", - "@backstage/cli": "^0.10.2", - "@backstage/core-app-api": "^0.2.1", - "@backstage/dev-utils": "^0.2.14", - "@backstage/test-utils": "^0.1.24", + "@backstage/cli": "^0.10.4", + "@backstage/core-app-api": "^0.3.0", + "@backstage/dev-utils": "^0.2.15", + "@backstage/test-utils": "^0.2.1", "@testing-library/jest-dom": "^5.10.1", "@testing-library/react": "^11.2.5", "@testing-library/user-event": "^13.1.8", - "@types/jest": "*", - "@types/node": "*", + "@types/jest": "^26.0.7", + "@types/node": "^14.14.32", "msw": "^0.35.0", "cross-fetch": "^3.0.6", "react-router": "6.0.0-beta.0" diff --git a/plugins/airbrake/src/plugin.test.ts b/plugins/airbrake/src/plugin.test.ts new file mode 100644 index 0000000000..c8e9c30e83 --- /dev/null +++ b/plugins/airbrake/src/plugin.test.ts @@ -0,0 +1,23 @@ +/* + * Copyright 2020 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { airbrakePlugin } from './plugin'; + +describe('catalog', () => { + it('should export plugin', () => { + expect(airbrakePlugin).toBeDefined(); + }); +}); diff --git a/plugins/airbrake/src/plugin.test.tsx b/plugins/airbrake/src/plugin.test.tsx index 48f553fce1..1f29aae42b 100644 --- a/plugins/airbrake/src/plugin.test.tsx +++ b/plugins/airbrake/src/plugin.test.tsx @@ -14,14 +14,10 @@ * limitations under the License. */ import React from 'react'; -import { airbrakePlugin, EntityAirbrakeContent } from './plugin'; +import { EntityAirbrakeContent } from './plugin'; import { renderInTestApp } from '@backstage/test-utils'; describe('Airbrake', () => { - it('should export plugin', () => { - expect(airbrakePlugin).toBeDefined(); - }); - it('should render page', async () => { const rendered = await renderInTestApp(); expect(rendered.getByText('ChunkLoadError')).toBeInTheDocument(); diff --git a/yarn.lock b/yarn.lock index bccfe4abf5..7d9f2b2c99 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2206,7 +2206,7 @@ react-use "^17.2.4" zen-observable "^0.8.15" -"@backstage/core-app-api@^0.2.0", "@backstage/core-app-api@^0.2.1": +"@backstage/core-app-api@^0.2.0": version "0.2.1" resolved "https://registry.npmjs.org/@backstage/core-app-api/-/core-app-api-0.2.1.tgz#cdaaee797834d0efaaf56110d3e48fa57f4195ce" integrity sha512-883TxnfDWLgYd91NxEPMUnXQsvZRCObl/MTagErhkhRSty3VEf8Aeh2bAEzzv+oHq+Zde284zBs8PFnf3AN2vw== @@ -2558,24 +2558,6 @@ react-router "6.0.0-beta.0" react-use "^17.2.4" -"@backstage/test-utils@^0.1.24": - version "0.1.24" - resolved "https://registry.npmjs.org/@backstage/test-utils/-/test-utils-0.1.24.tgz#1af2ea1fe3daa7df5545cc6d41271d59c2076f48" - integrity sha512-zfqhY5AS8tNOFoP8Kmpb3zE1vCbbHCXwsvxtTEq7UsRJiGpzTMN7pn+GQpddMgMHJc+IB0y25Xflw3grNEKTbA== - dependencies: - "@backstage/core-app-api" "^0.2.0" - "@backstage/core-plugin-api" "^0.3.0" - "@backstage/theme" "^0.2.14" - "@backstage/types" "^0.1.1" - "@material-ui/core" "^4.12.2" - "@material-ui/icons" "^4.11.2" - "@testing-library/jest-dom" "^5.10.1" - "@testing-library/react" "^11.2.5" - "@testing-library/user-event" "^13.1.8" - react-router "6.0.0-beta.0" - react-router-dom "6.0.0-beta.0" - zen-observable "^0.8.15" - "@bcoe/v8-coverage@^0.2.3": version "0.2.3" resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"