mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00

The following cases are covered: - ThemedComponent wrapper selectors must not start with ds-themed- - Base component selectors must start with ds-base- - Themed component selectors must start with ds-themed- - The ThemedComponent wrapper must always be used in HTML - The ThemedComponent wrapper must be used in TypeScript _where appropriate_: - Required - Explicit usages (e.g. modal instantiation, routing modules, ...) - By.css selector queries (in order to align with the HTML rule) - Unchecked - Non-routing modules (to ensure the components can be declared) - ViewChild hooks (since they need to attach to the underlying component) All rules work with --fix to automatically migrate to the new convention This covers most of the codebase, but minor manual adjustment are needed afterwards
14 lines
424 B
JavaScript
14 lines
424 B
JavaScript
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
|
|
const StacktraceOption = require('jasmine-spec-reporter').StacktraceOption;
|
|
|
|
jasmine.getEnv().clearReporters(); // Clear default console reporter for those instead
|
|
jasmine.getEnv().addReporter(new SpecReporter({
|
|
spec: {
|
|
displayErrorMessages: false,
|
|
},
|
|
summary: {
|
|
displayFailed: true,
|
|
displayStacktrace: StacktraceOption.PRETTY,
|
|
},
|
|
}));
|