<commit_before>const { pathsToModuleNameMapper } = require('ts-jest/utils');
const path = require('path');
const { mapValues } = require('lodash');
const { compilerOptions } = require('./packages/tsconfig.test');

const pathsMappings = Object.fromEntries(
  Object.entries(compilerOptions.paths).filter(([name]) => name.startsWith('@stoplight'))
);

const projectDefault = {
  moduleNameMapper: mapValues(pathsToModuleNameMapper(pathsMappings), v => path.resolve(path.join('packages', v))),
  testEnvironment: 'node',
  transform: {
    '^.+\\.(ts)$': 'ts-jest',
  },<commit_msg>chore: added info about hack for json-schema-faker<commit_after>const { pathsToModuleNameMapper } = require('ts-jest/utils');
const path = require('path');
const { mapValues } = require('lodash');
const { compilerOptions } = require('./packages/tsconfig.test');

// Due to invalid typings built-in to `json-schema-faker` we had to force typescript to load
// typings from @types/json-schema-faker instead
const pathsMappings = Object.fromEntries(
  Object.entries(compilerOptions.paths).filter(([name]) => name.startsWith('@stoplight'))
);

const projectDefault = {
  moduleNameMapper: mapValues(pathsToModuleNameMapper(pathsMappings), v => path.resolve(path.join('packages', v))),
  testEnvironment: 'node',
  transform: {
    '^.+\\.(ts)$': 'ts-jest',
  },
{'fraction_non_alphanumeric': 0.17202692595362754, 'fraction_numerical': 0.0, 'mean_word_length': 5.723618090452261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3460559', 'n_tokens_mistral': 410, 'n_tokens_neox': 403, 'n_words': 82}