-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1113 from SQ-UI/feature/bump-angular-version
Feature/bump angular version
- Loading branch information
Showing
85 changed files
with
25,180 additions
and
27,654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
!.vscode/extensions.json | ||
|
||
# misc | ||
/.angular/cache | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// weird issue with Jest after updating to Angular ver 14: | ||
// https://github.com/nrwl/nx/issues/7844#issuecomment-1139427677 | ||
const esModules = ['@angular', 'tslib', 'rxjs'].join('|'); | ||
|
||
module.exports = { | ||
preset: 'jest-preset-angular', | ||
// verbose: true, | ||
roots: ['projects'], | ||
restoreMocks: true, | ||
rootDir: './', | ||
modulePaths: ['<rootDir>'], | ||
modulePathIgnorePatterns: ['^.+\\.js$'], | ||
testEnvironment: 'jsdom', | ||
testMatch: ['**/?(*.)+(spec).ts?(x)'], | ||
transform: { | ||
'^.+\\.(ts|js|html)$': ['jest-preset-angular', { | ||
tsconfig: '<rootDir>/tsconfig.spec.json', | ||
allowSyntheticDefaultImports: true, | ||
diagnostics: { warnOnly: true }, | ||
stringifyContentPathRegex: '\\.html$', | ||
}], | ||
}, | ||
moduleNameMapper: { | ||
'^@sq-ui/ng-sq-common/(.*)$': '<rootDir>/projects/ng-sq-common/src/$1', | ||
'@sq-ui/ng-sq-common': '<rootDir>/projects/ng-sq-common/src/index.ts', | ||
}, | ||
moduleFileExtensions: ['ts', 'js', 'html'], | ||
coverageReporters: ['html'], | ||
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'], | ||
transformIgnorePatterns: [`<rootDir>/node_modules/(?!.*\\.mjs$|${esModules})`], | ||
coverageReporters: ["lcov", "text"], | ||
}; |
Oops, something went wrong.