const Jasmine = require('jasmine');
const { SpecReporter } = require('jasmine-spec-reporter');

const jasmine = new Jasmine();
jasmine.loadConfig({
	showColors: true,
	spec_dir: 'workspaces/electron-e2e',
	spec_files: ['./**/*-spec.ts'],
	helpers: ['./**/*-helper.ts'],
	random: false,
	seed: undefined,
	stopSpecOnExpectationFailure: false,
});
jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;

require('ts-node').register({
	project: require('path').join(__dirname, './tsconfig.json'),
});
jasmine.env.clearReporters();
jasmine.addReporter(
	new SpecReporter({ spec: { displayStacktrace: 'pretty' } })
);
jasmine.execute();
