Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

227 B
Raw Blame
import fetchMock from "fetch-mock";

import type { Alert, Card } from "metabase-types/api";

export function setupAlertsEndpoints(card: Card, alerts: Alert[]) {
  fetchMock.get(`path:/api/alert/question/${card.id}`, alerts);
}