diff --git a/src/instrumentation.js b/src/instrumentation.js index ca136be..7a3528e 100644 --- a/src/instrumentation.js +++ b/src/instrumentation.js @@ -3,7 +3,6 @@ export async function register() { "localhost:3000", "googleapis.com", "gstatic.com", - "api.flagsmith.com", "github.com/mona.png", ]; diff --git a/tests/data/flagsmith/flags.json b/tests/data/flagsmith/flags.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/tests/data/flagsmith/flags.json @@ -0,0 +1 @@ +[] diff --git a/tests/data/flagsmith/identities.json b/tests/data/flagsmith/identities.json new file mode 100644 index 0000000..fde9a8c --- /dev/null +++ b/tests/data/flagsmith/identities.json @@ -0,0 +1,4 @@ +{ + "traits": [], + "flags": [] +} diff --git a/tests/setup/mocks/handlers.js b/tests/setup/mocks/handlers.js index e8f1d54..fcc18d2 100644 --- a/tests/setup/mocks/handlers.js +++ b/tests/setup/mocks/handlers.js @@ -9,8 +9,19 @@ import labels from "../../data/github/labels.json"; import projects from "../../data/github/projects.json"; import referrers from "../../data/github/referrers.json"; import views from "../../data/github/views.json"; +import identities from "../../data/flagsmith/identities.json"; +import flags from "../../data/flagsmith/flags.json"; export const handlers = [ + // flagsmith + http.post("https://edge.api.flagsmith.com/api/v1/identities/", () => + HttpResponse.json(identities), + ), + http.get("https://edge.api.flagsmith.com/api/v1/flags/", () => + HttpResponse.json(flags), + ), + + // github http.get("https://api.github.com/repos/EddieHubCommunity/HealthCheck", () => HttpResponse.json(repo), ),