<commit_before>module.exports = {
	preset: '@wordpress/jest-preset-default',
	collectCoverage: false, // Enable with `--coverage=true` flag.
	collectCoverageFrom: [ 'assets/**/**.js' ],
	coverageDirectory: 'coverage',
	coveragePathIgnorePatterns: [
		'<rootDir>/build/',
		'<rootDir>/node_modules/',
		'<rootDir>/assets/js/googlesitekit-(.*).js',
	],
	coverageReporters: [ 'html', 'text-summary' ],
	rootDir: '../../',
	transform: {
		'^.+\\.[jt]sx?$': '<rootDir>/tests/e2e/babel-transform.js',
	},
	setupFiles: [
		'<rootDir>/tests/js/setup-globals',
		'jest-localstorage-mock',
	],
	setupFilesAfterEnv: [
		'<rootDir>/tests/js/jest-matchers',
		'<rootDir>/tests/js/setup-before-after',
	],
	testMatch: [
		'<rootDir>/assets/**/__tests__/**/*.js',
		'<rootDir>/assets/**/test/*.js',
		'<rootDir>/assets/**/?(*.)test.js',
		'<rootDir>/packages/**/__tests__/**/*.js',
		'<rootDir>/packages/**/test/*.js',
		'<rootDir>/packages/**/?(*.)test.js',
	],
	testPathIgnorePatterns: [
		'<rootDir>/.git',
		'<rootDir>/node_modules',
		'<rootDir>/build',
	],
	// Matches aliases in webpack.config.js.
	moduleNameMapper: {
		// New (JSR) modules.
		// In the future when the "components" entry point uses GM3 and
		// the filename is `'googlesitekit-components'`, we can revert to
		// using a more concise catch-all name mapper, eg.
		// `'^googlesitekit-(.+)$': '<rootDir>assets/js/googlesitekit-$1',`
		//
		// After that, these manually-mapped `googlesitekit-$X` entries can
		// be removed.
		'googlesitekit-api': '<rootDir>assets/js/googlesitekit-api',
		'googlesitekit-data': '<rootDir>assets/js/googlesitekit-data',
		'googlesitekit-modules': '<rootDir>assets/js/googlesitekit-modules',
		'googlesitekit-widgets': '<rootDir>assets/js/googlesitekit-widgets',
		'googlesitekit-components':
			'<rootDir>assets/js/googlesitekit-components-gm2',
		// Necessary mock to prevent test failures caused by SVGR
		'\\.svg$': '<rootDir>/tests/js/svgrMock.js',
		'\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
			'<rootDir>/tests/js/fileMock.js',
	},
};
<commit_msg>Add comment to filename override.<commit_after>module.exports = {
	preset: '@wordpress/jest-preset-default',
	collectCoverage: false, // Enable with `--coverage=true` flag.
	collectCoverageFrom: [ 'assets/**/**.js' ],
	coverageDirectory: 'coverage',
	coveragePathIgnorePatterns: [
		'<rootDir>/build/',
		'<rootDir>/node_modules/',
		'<rootDir>/assets/js/googlesitekit-(.*).js',
	],
	coverageReporters: [ 'html', 'text-summary' ],
	rootDir: '../../',
	transform: {
		'^.+\\.[jt]sx?$': '<rootDir>/tests/e2e/babel-transform.js',
	},
	setupFiles: [
		'<rootDir>/tests/js/setup-globals',
		'jest-localstorage-mock',
	],
	setupFilesAfterEnv: [
		'<rootDir>/tests/js/jest-matchers',
		'<rootDir>/tests/js/setup-before-after',
	],
	testMatch: [
		'<rootDir>/assets/**/__tests__/**/*.js',
		'<rootDir>/assets/**/test/*.js',
		'<rootDir>/assets/**/?(*.)test.js',
		'<rootDir>/packages/**/__tests__/**/*.js',
		'<rootDir>/packages/**/test/*.js',
		'<rootDir>/packages/**/?(*.)test.js',
	],
	testPathIgnorePatterns: [
		'<rootDir>/.git',
		'<rootDir>/node_modules',
		'<rootDir>/build',
	],
	// Matches aliases in webpack.config.js.
	moduleNameMapper: {
		// New (JSR) modules.
		// In the future when the "components" entry point uses GM3 and
		// the filename is `'googlesitekit-components'`, we can revert to
		// using a more concise catch-all name mapper, eg.
		// `'^googlesitekit-(.+)$': '<rootDir>assets/js/googlesitekit-$1',`
		//
		// After that, these manually-mapped `googlesitekit-$X` entries can
		// be removed.
		'googlesitekit-api': '<rootDir>assets/js/googlesitekit-api',
		'googlesitekit-data': '<rootDir>assets/js/googlesitekit-data',
		'googlesitekit-modules': '<rootDir>assets/js/googlesitekit-modules',
		'googlesitekit-widgets': '<rootDir>assets/js/googlesitekit-widgets',
		// This component has a (temporary) filename override because
		// it currently references the "GM2+" versions of these components.
		'googlesitekit-components':
			'<rootDir>assets/js/googlesitekit-components-gm2',
		// Necessary mock to prevent test failures caused by SVGR
		'\\.svg$': '<rootDir>/tests/js/svgrMock.js',
		'\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
			'<rootDir>/tests/js/fileMock.js',
	},
};

{'fraction_non_alphanumeric': 0.215210355987055, 'fraction_numerical': 0.003929727230698105, 'mean_word_length': 4.25121359223301, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1272771', 'n_tokens_mistral': 1795, 'n_tokens_neox': 1648, 'n_words': 241}