Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe("build-size", () => {
const codeChecksMock = require("../__mocks__/@codechecks/client").codechecks as Mocked<
typeof codechecks
>;
beforeEach(() => jest.resetAllMocks());
it("should work not in PR context", async () => {
codeChecksMock.isPr.mockReturnValue(false);
mockFS({
[join(__dirname, "../build")]: {
"main.12315123.js": "APP JS",
"vendor.123124.js": "VENDOR JS",
"vendor.12466345.css": "VENDOR CSS",
},
});
await buildSizeWatcher({
files: [