2021-08-20 00:31:18 +00:00
|
|
|
jest.mock("next-pwa", () => ({ __esModule: true, default: jest.fn().mockImplementation((config) => config) }));
|
|
|
|
|
2021-08-02 13:43:27 +00:00
|
|
|
import { setConfig } from "blitz";
|
2021-07-31 14:33:18 +00:00
|
|
|
|
2021-08-03 12:02:01 +00:00
|
|
|
// see https://github.com/vercel/next.js/issues/4024
|
|
|
|
const config = require("../blitz.config");
|
2021-08-02 13:43:27 +00:00
|
|
|
|
|
|
|
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(),
|
|
|
|
}),
|
|
|
|
}));
|