Skip to content

Commit ad3ef75

Browse files
committed
Merge branch 'main' into feat/preprint-details
2 parents 6d47cc7 + aae524d commit ad3ef75

58 files changed

Lines changed: 22526 additions & 336 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/scripts/check-coverage-thresholds.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ for (const key of ['branches', 'functions', 'lines', 'statements']) {
1414
if (current > threshold) {
1515
errors.push(
1616
`Coverage for ${key} (${current}%) is above the threshold (${threshold}%).\n\tPlease update the coverageThreshold.global.${key} in the jest.config.js to ${current}!`
17-
)
17+
);
1818
failed = true;
1919
}
2020
}
@@ -26,6 +26,6 @@ if (failed) {
2626
console.log('Please update the coverage thresholds in jest.config.js.');
2727
console.log('You will need to commit again once you have updated the jst.config.js file.');
2828
console.log('This is only necessary until we hit 100% coverage.\n\n');
29-
errors.forEach(err => console.error(`${err}\n`));
29+
errors.forEach((err) => console.error(`${err}\n`));
3030
process.exit(1);
31-
}
31+
}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ testem.log
4242
# System files
4343
.DS_Store
4444
Thumbs.db
45-
package-lock.json

.husky/pre-push

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
npm run build
1+
# npm run build
22

3-
npm run test:coverage || {
4-
printf "\n\nERROR: Testing errors or coverage issues were found. Please address them before proceeding.\n\n\n\n"
5-
exit 1
6-
}
3+
# npm run test:coverage || {
4+
# printf "\n\nERROR: Testing errors or coverage issues were found. Please address them before proceeding.\n\n\n\n"
5+
# exit 1
6+
# }
77

8-
npm run test:check-coverage-thresholds || {
9-
printf "\n\nERROR: Coverage thresholds were not met. Please address them before proceeding.\n\n\n\n"
10-
exit 1
11-
}
8+
# npm run test:check-coverage-thresholds || {
9+
# printf "\n\nERROR: Coverage thresholds were not met. Please address them before proceeding.\n\n\n\n"
10+
# exit 1
11+
# }

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"source.fixAll.stylelint": "explicit",
66
"source.fixAll.eslint": "explicit"
77
},
8-
"[html]": {
9-
"editor.defaultFormatter": "esbenp.prettier-vscode"
10-
},
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
119
"scss.lint.unknownAtRules": "ignore",
1210
"eslint.validate": ["json"]
1311
}

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,11 @@ module.exports = tseslint.config(
8585
files: ['**/*.html'],
8686
extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility],
8787
rules: {},
88+
},
89+
{
90+
files: ['**/*.spec.ts'],
91+
rules: {
92+
'@typescript-eslint/no-explicit-any': 'off',
93+
},
8894
}
8995
);

jest.config.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ module.exports = {
2727
coverageDirectory: 'coverage',
2828
collectCoverageFrom: [
2929
'src/app/**/*.{ts,js}',
30+
'!src/app/app.config.ts',
31+
'!src/app/**/*.routes.{ts.js}',
32+
'!src/app/**/*.models.{ts.js}',
33+
'!src/app/**/*.model.{ts.js}',
34+
'!src/app/**/*.route.{ts,js}',
3035
'!src/app/**/*.spec.{ts,js}',
3136
'!src/app/**/*.module.ts',
3237
'!src/app/**/index.ts',
@@ -35,17 +40,25 @@ module.exports = {
3540
extensionsToTreatAsEsm: ['.ts'],
3641
coverageThreshold: {
3742
global: {
38-
branches: 11.89,
39-
functions: 12.12,
40-
lines: 37.27,
41-
statements: 37.83,
43+
branches: 11.2,
44+
functions: 11.34,
45+
lines: 36.73,
46+
statements: 37.33,
4247
},
4348
},
4449
testPathIgnorePatterns: [
50+
'<rootDir>/src/app/app.config.ts',
51+
'<rootDir>/src/app/app.routes.ts',
4552
'<rootDir>/src/app/features/registry/',
4653
'<rootDir>/src/app/features/project/',
4754
'<rootDir>/src/app/features/registries/',
48-
'<rootDir>/src/app/features/settings/',
55+
'<rootDir>/src/app/features/settings/addons/',
56+
'<rootDir>/src/app/features/settings/notifications/',
57+
'<rootDir>/src/app/features/settings/settings-container.component.ts',
58+
'<rootDir>/src/app/features/settings/tokens/components/',
59+
'<rootDir>/src/app/features/settings/tokens/mappers/',
60+
'<rootDir>/src/app/features/settings/tokens/store/',
61+
'<rootDir>/src/app/features/settings/tokens/pages/tokens-list/',
4962
'<rootDir>/src/app/shared/',
5063
],
5164
};

0 commit comments

Comments
 (0)