From 58e19478ef07a3a946205036958e894226e0b4d8 Mon Sep 17 00:00:00 2001 From: Joe Porpeglia Date: Mon, 28 Jun 2021 13:26:45 -0400 Subject: [PATCH] Use __fixtures__ for static json test data Signed-off-by: Joe Porpeglia --- plugins/github-actions/dev/index.tsx | 4 ++-- .../__fixtures__/get-workflow-run.json} | 0 .../__fixtures__/list-jobs-for-workflow-run.json} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename plugins/github-actions/{dev/getWorkflowRun.json => src/__fixtures__/get-workflow-run.json} (100%) rename plugins/github-actions/{dev/listJobsForWorkflowRun.json => src/__fixtures__/list-jobs-for-workflow-run.json} (100%) diff --git a/plugins/github-actions/dev/index.tsx b/plugins/github-actions/dev/index.tsx index e105bf9294..ee761b3504 100644 --- a/plugins/github-actions/dev/index.tsx +++ b/plugins/github-actions/dev/index.tsx @@ -20,8 +20,8 @@ import { EntityGithubActionsContent, githubActionsPlugin } from '../src/plugin'; import { EntityProvider } from '@backstage/plugin-catalog-react'; import { Entity } from '@backstage/catalog-model'; import { GithubActionsApi, githubActionsApiRef } from '../src'; -import getWorkflowRunResponse from './getWorkflowRun.json'; -import listJobsForWorkflowRunResponse from './listJobsForWorkflowRun.json'; +import getWorkflowRunResponse from '../src/__fixtures__/get-workflow-run.json'; +import listJobsForWorkflowRunResponse from '../src/__fixtures__/list-jobs-for-workflow-run.json'; const mockEntity: Entity = { apiVersion: 'backstage.io/v1alpha1', diff --git a/plugins/github-actions/dev/getWorkflowRun.json b/plugins/github-actions/src/__fixtures__/get-workflow-run.json similarity index 100% rename from plugins/github-actions/dev/getWorkflowRun.json rename to plugins/github-actions/src/__fixtures__/get-workflow-run.json diff --git a/plugins/github-actions/dev/listJobsForWorkflowRun.json b/plugins/github-actions/src/__fixtures__/list-jobs-for-workflow-run.json similarity index 100% rename from plugins/github-actions/dev/listJobsForWorkflowRun.json rename to plugins/github-actions/src/__fixtures__/list-jobs-for-workflow-run.json