Skip to content

Commit

Permalink
test(backstage-plugin): Fix linting test files
Browse files Browse the repository at this point in the history
Move test setup files out of source folder to avoid needing dependencies instead of dev dependencies
when compiling typescript.

Addresses #71
  • Loading branch information
kylejwatson committed Nov 16, 2023
1 parent f3de800 commit 86d9981
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backstage-plugin/plugins/open-dora/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
]
},
"setupFiles": [
"./jest.polyfills.js"
"../testing/jest.polyfills.js"
]
}
}
2 changes: 1 addition & 1 deletion backstage-plugin/plugins/open-dora/src/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@testing-library/jest-dom';
import 'cross-fetch/polyfill';
import { setupServer } from 'msw/node';
import { handlers } from './mswHandlers';
import { handlers } from '../testing/mswHandlers';

export const server = setupServer(...handlers);

Expand Down

0 comments on commit 86d9981

Please sign in to comment.