shellphone.app/test/setup.ts

18 lines
364 B
TypeScript
Raw Normal View History

import { setConfig } from "blitz";
2021-07-31 14:33:18 +00:00
import { config } from "../blitz.config";
setConfig({
serverRuntimeConfig: config.serverRuntimeConfig,
publicRuntimeConfig: config.publicRuntimeConfig,
});
jest.mock("../integrations/logger", () => ({
child: jest.fn().mockReturnValue({
log: jest.fn(),
error: jest.fn(),
debug: jest.fn(),
warn: jest.fn(),
}),
}));