/* eslint-disable @typescript-eslint/no-var-requires */
const { defaults: tsjPreset } = require('ts-jest/presets');

process.env.JEST_PLAYWRIGHT_CONFIG = './config/jest-playwright.config.js';

module.exports = {
	preset: 'jest-playwright-preset',
	transform: {
		...tsjPreset.transform
	},
	rootDir: '../',
	reporters: [
		'default',
		[
			'jest-junit',
			{
				outputDirectory: 'test-results',
				outputName: 'e2e-junit.xml'
			}
		]
	]
};
