<commit_before>window.fetch = require('jest-fetch-mock');

// Mock the Date object and allows us to use Date.now() and get a consistent date back
const mockedCurrentDate = new Date("2017-10-06T13:45:28.975Z");
require('jest-mock-now')(mockedCurrentDate);<commit_msg>Add missing setupJest change - causes build to fail<commit_after>window.fetch = require('jest-fetch-mock');

// Mock the Date object and allows us to use Date.now() and get a consistent date back
const mockedCurrentDate = new Date("2017-10-06T13:45:28.975Z");
require('jest-mock-now')(mockedCurrentDate);

// Mock document functions (specifically for the CollectionsController component)
const mockedGetElement = () => ({
    getBoundingClientRect: () => ({
        top: 0
    }),
    scrollTop: 0
});
Object.defineProperty(document, 'getElementById', {
    value: mockedGetElement,
});
{'fraction_non_alphanumeric': 0.13262910798122066, 'fraction_numerical': 0.04225352112676056, 'mean_word_length': 4.965034965034965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6491738', 'n_tokens_mistral': 276, 'n_tokens_neox': 250, 'n_words': 71}