2020-07-15 13:29:21 +02:00
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
2021-01-07 10:15:14 +00:00
|
|
|
|
|
|
|
if (process.env.SES_ENABLED) {
|
|
|
|
require("ses/lockdown");
|
|
|
|
// eslint-disable-next-line no-undef
|
|
|
|
lockdown();
|
|
|
|
}
|
|
|
|
|
2020-06-05 13:01:25 +02:00
|
|
|
require("source-map-support").install();
|
|
|
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
|
|
|
|
|
|
|
// setup Jasmine
|
|
|
|
const Jasmine = require("jasmine");
|
|
|
|
const jasmine = new Jasmine();
|
|
|
|
jasmine.loadConfig({
|
|
|
|
spec_dir: "build",
|
|
|
|
spec_files: ["**/*.spec.js"],
|
|
|
|
helpers: [],
|
|
|
|
random: false,
|
|
|
|
seed: null,
|
|
|
|
stopSpecOnExpectationFailure: false,
|
|
|
|
});
|
|
|
|
jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 15 * 1000;
|
|
|
|
|
|
|
|
// setup reporter
|
|
|
|
const { SpecReporter } = require("jasmine-spec-reporter");
|
2020-06-25 10:36:49 +02:00
|
|
|
const reporter = new SpecReporter({
|
|
|
|
...defaultSpecReporterConfig,
|
|
|
|
spec: {
|
|
|
|
...defaultSpecReporterConfig.spec,
|
|
|
|
displaySuccessful: !process.argv.includes("--quiet"),
|
|
|
|
},
|
|
|
|
});
|
2020-06-05 13:01:25 +02:00
|
|
|
|
|
|
|
// initialize and execute
|
|
|
|
jasmine.env.clearReporters();
|
|
|
|
jasmine.addReporter(reporter);
|
2021-05-25 11:44:33 +02:00
|
|
|
void jasmine.execute();
|