Skip to content

Commit

Permalink
Merge branch 'main' into aa/dt-1891-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Feb 2, 2024
2 parents 25ddfb7 + fda3f09 commit 6469226
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/manager/test/__setup__.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ vi.mock("@segment/analytics-node", async () => {
});

vi.mock("@amplitude/experiment-node-server", () => {
const MockAmplitudeClient = {
fetchV2: vi.fn(() => {
class RemoteEvaluationClient {
fetchV2() {
return {
"test-variant-on": {
value: "on",
Expand All @@ -177,16 +177,16 @@ vi.mock("@amplitude/experiment-node-server", () => {
value: "off",
},
};
}),
};
}
}

const MockExperiment = {
initializeRemote: vi.fn(() => MockAmplitudeClient),
const Experiment = {
initializeRemote: vi.fn(() => new RemoteEvaluationClient()),
};

return {
Experiment: MockExperiment,
RemoteEvaluationClient: MockAmplitudeClient,
Experiment,
RemoteEvaluationClient,
};
});

Expand Down

0 comments on commit 6469226

Please sign in to comment.