Merge branch 'master' of github.com:backstage/backstage into RoadieHQ-5identity-api-client-interface

This commit is contained in:
Brian Fletcher
2022-08-31 10:39:48 +01:00
627 changed files with 10721 additions and 3559 deletions
+3 -3
View File
@@ -13,7 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { PluginEndpointDiscovery } from '@backstage/backend-common';
import { setupRequestMockHandlers } from '@backstage/backend-test-utils';
import {
decodeProtectedHeader,
exportJWK,
@@ -100,9 +102,7 @@ describe('IdentityClient', () => {
let factory: FakeTokenFactory;
const keyDurationSeconds = 5;
beforeAll(() => server.listen({ onUnhandledRequest: 'error' }));
afterAll(() => server.close());
afterEach(() => server.resetHandlers());
setupRequestMockHandlers(server);
beforeEach(() => {
client = IdentityClient.create({ discovery, issuer: mockBaseUrl });