Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Mar 18, 2024
1 parent 4a8fc1e commit 8e185db
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions client/src/app/test-config/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { server } from "../../mocks/server";

const mockInitialized = false;

Object.defineProperty(process.env, "MOCK", {
value: "stub",
writable: true,
});

jest.mock("@react-keycloak/web", () => {
const originalModule = jest.requireActual("@react-keycloak/web");
return {
Expand All @@ -29,14 +24,14 @@ afterAll(() => server.close());

// Enable the following to see request logging in the console:

// server.events.on("request:start", (req) => {
// console.log(`Handling a request to ${req.url.href}`);
// });
server.events.on("request:start", (req) => {
console.log(`Handling a request to ${req.url.href}`);
});

// server.events.on("request:match", (req) => {
// console.log(`Request to ${req.url.href} was matched with a handler`);
// });
server.events.on("request:match", (req) => {
console.log(`Request to ${req.url.href} was matched with a handler`);
});

// server.events.on("request:unhandled", (req) => {
// console.warn(`Request to ${req.url.href} was not handled`);
// });
server.events.on("request:unhandled", (req) => {
console.warn(`Request to ${req.url.href} was not handled`);
});

0 comments on commit 8e185db

Please sign in to comment.