Skip to content

Commit

Permalink
feat(*): upgrade to angular 16
Browse files Browse the repository at this point in the history
fix dependencies
  • Loading branch information
jloaizar committed Jun 27, 2024
1 parent dc53ea4 commit 7d2544a
Show file tree
Hide file tree
Showing 22 changed files with 13,607 additions and 14,708 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Editor configuration, see https://editorconfig.org
# Editor configuration, see http://editorconfig.org
root = true

[*]
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"root": true,
"ignorePatterns": [
"projects/testing/*"
"projects/**/*"
],
"overrides": [
{
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ node_modules
!.vscode/extensions.json

# misc
/.angular/cache
.angular
/.sass-cache
/connect.lock
/coverage
Expand Down
6 changes: 2 additions & 4 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
module.exports = {
"src/**/*.ts": [
"prettier --write",
files => `ng lint ngx-translate-plugins --fix ${files.map((file) => `--files ${file}`).join(' ')}`,
"git add"
files => `ng lint ngx-translate-plugins --fix`
],
"projects/testing/src/**/*.ts": [
"prettier --write",
files => `ng lint testing --fix ${files.map((file) => `--files ${file}`).join(' ')}`,
"git add"
files => `ng lint testing --fix`
]
}
6 changes: 2 additions & 4 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"newProjectRoot": "projects",
"cli": {
"analytics": false,
"packageManager": "yarn",
"defaultCollection": "@angular-eslint/schematics"
"packageManager": "yarn"
},
"projects": {
"ngx-translate-plugins": {
Expand Down Expand Up @@ -127,6 +126,5 @@
}
}
}
},
"defaultProject": "ngx-translate-plugins"
}
}
26 changes: 13 additions & 13 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig.json');
module.exports = {
globals: {
'ts-jest': {
tsconfig: './projects/testing/tsconfig.spec.json',
stringifyContentPathRegex: '\\.html$',
diagnostics: {
ignoreCodes: [151001]
}
}
},
transform: {
'^.+\\.(ts|js|mjs|html|svg)$': 'jest-preset-angular'
'^.+\\.(ts|js|mjs|html|svg)$': [
'jest-preset-angular',
{
tsconfig: './projects/testing/tsconfig.spec.json',
stringifyContentPathRegex: '\\.html$',
diagnostics: {
ignoreCodes: [151001]
}
}
]
},
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setupJest.ts'],
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
moduleFileExtensions: ['ts', 'js', 'html'],
moduleFileExtensions: ['ts', 'html', 'js', 'json', 'mjs'],
testPathIgnorePatterns: ['/node_modules/', '/dist/', 'contract.spec.ts$', 'comp.spec.ts$'],
silent: true,
moduleDirectories: ['node_modules', '.'],
moduleDirectories: ['node_modules', '<rootDir>'],
roots: ['<rootDir>/projects/testing/src'],
collectCoverage: true,
collectCoverageFrom: [
Expand Down
Loading

0 comments on commit 7d2544a

Please sign in to comment.