From bdf30530d80c3a3447dbc9d818010901366ecb9f Mon Sep 17 00:00:00 2001 From: Erik Engervall Date: Tue, 24 Aug 2021 13:28:50 +0200 Subject: [PATCH] Export testHelpers as well to further aid development of custom features Signed-off-by: Erik Engervall --- plugins/git-release-manager/src/index.ts | 3 ++- plugins/git-release-manager/src/plugin.ts | 3 ++- .../src/test-helpers/index.ts | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 plugins/git-release-manager/src/test-helpers/index.ts diff --git a/plugins/git-release-manager/src/index.ts b/plugins/git-release-manager/src/index.ts index cb903044f4..c325a3335b 100644 --- a/plugins/git-release-manager/src/index.ts +++ b/plugins/git-release-manager/src/index.ts @@ -20,10 +20,11 @@ export { gitReleaseManagerApiRef, } from './plugin'; -import { components, constants, helpers } from './plugin'; +import { components, constants, helpers, testHelpers } from './plugin'; export const internals = { components, constants, helpers, + testHelpers, }; diff --git a/plugins/git-release-manager/src/plugin.ts b/plugins/git-release-manager/src/plugin.ts index 03027a5369..a416ab9092 100644 --- a/plugins/git-release-manager/src/plugin.ts +++ b/plugins/git-release-manager/src/plugin.ts @@ -28,8 +28,9 @@ import { rootRouteRef } from './routes'; import * as constants from './constants/constants'; import * as helpers from './helpers'; import * as components from './components'; +import * as testHelpers from './test-helpers'; -export { gitReleaseManagerApiRef, constants, helpers, components }; +export { gitReleaseManagerApiRef, constants, helpers, components, testHelpers }; export const gitReleaseManagerPlugin = createPlugin({ id: 'git-release-manager', diff --git a/plugins/git-release-manager/src/test-helpers/index.ts b/plugins/git-release-manager/src/test-helpers/index.ts new file mode 100644 index 0000000000..07c59e68cd --- /dev/null +++ b/plugins/git-release-manager/src/test-helpers/index.ts @@ -0,0 +1,19 @@ +/* + * Copyright 2021 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. + */ + +export * as stats from './stats'; +export * as testHelpers from './test-helpers'; +export * as testIds from './test-ids';