{"size": 636, "ext": "js", "max_stars_repo_path": "jest.ts.transform.js", "max_stars_repo_name": "imprss/legasi", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "jest.ts.transform.js", "max_issues_repo_name": "imprss/legasi", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "jest.ts.transform.js", "max_forks_repo_name": "imprss/legasi", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.1891891892, "max_line_length": 64, "alphanum_fraction": 0.6006289308}
const typescript = require('typescript');
const babelJest = require('babel-jest').createTransformer({
	babelrc: false,
	presets: [
		["@babel/preset-env",
			{
				"modules": "commonjs",
				"loose": true,
				"targets": {
					"node": "current"
				}
			}
		]
	],
	plugins: [
		["@babel/plugin-proposal-class-properties", { "loose": true }]
	]
});

const tsConfig = require('./tsconfig.json');
const jestConfig = require('./jest.config.js');

module.exports = {
	process(src, path) {
		return babelJest.process(
			typescript.transpile(
				src,
				tsConfig.compilerOptions,
				path,
				[],
			),
			path,
			jestConfig
		);
	},
};
