diff --git a/apps/webapp/jest.config.js b/apps/webapp/jest.config.js index 7ec09bf35..0467c4f6e 100644 --- a/apps/webapp/jest.config.js +++ b/apps/webapp/jest.config.js @@ -4,7 +4,8 @@ module.exports = { testPathIgnorePatterns: ['/e2e/'], coverageDirectory: '../../coverage/apps/webapp', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', - ], + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' + ] }; diff --git a/libs/admin/jest.config.js b/libs/admin/jest.config.js index a15e8cb23..136e106a9 100644 --- a/libs/admin/jest.config.js +++ b/libs/admin/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/admin', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/app-confirm/jest.config.js b/libs/app-confirm/jest.config.js index f932f7d99..11b0c8ecd 100644 --- a/libs/app-confirm/jest.config.js +++ b/libs/app-confirm/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/app-confirm', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/auth/jest.config.js b/libs/auth/jest.config.js index 3a4d7637d..cb2ac3408 100644 --- a/libs/auth/jest.config.js +++ b/libs/auth/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/auth', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/breadcrumbs/jest.config.js b/libs/breadcrumbs/jest.config.js index bb82acfd7..6b83edb7a 100644 --- a/libs/breadcrumbs/jest.config.js +++ b/libs/breadcrumbs/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/breadcrumbs', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/chat-box/jest.config.js b/libs/chat-box/jest.config.js index 0f6e148c9..505bd6134 100644 --- a/libs/chat-box/jest.config.js +++ b/libs/chat-box/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/chat-box', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/clap/jest.config.js b/libs/clap/jest.config.js index 81884814a..b64cb39bd 100644 --- a/libs/clap/jest.config.js +++ b/libs/clap/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/clap', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/context-menu/jest.config.js b/libs/context-menu/jest.config.js index 485bdcefe..0a2a2c4f4 100644 --- a/libs/context-menu/jest.config.js +++ b/libs/context-menu/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/context-menu', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/core/jest.config.js b/libs/core/jest.config.js index 6a1d17dfb..ebf683276 100644 --- a/libs/core/jest.config.js +++ b/libs/core/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/core', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/dashboard/jest.config.js b/libs/dashboard/jest.config.js index 3d500c2d2..00526509c 100644 --- a/libs/dashboard/jest.config.js +++ b/libs/dashboard/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/dashboard', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/draggable/jest.config.js b/libs/draggable/jest.config.js index 5f03ceeeb..85d5bf5eb 100644 --- a/libs/draggable/jest.config.js +++ b/libs/draggable/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/draggable', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/experiments/jest.config.js b/libs/experiments/jest.config.js index ed4dd97d7..47c90f672 100644 --- a/libs/experiments/jest.config.js +++ b/libs/experiments/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/experiments', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/grid/jest.config.js b/libs/grid/jest.config.js index a408198ae..8dba2dcb8 100644 --- a/libs/grid/jest.config.js +++ b/libs/grid/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/grid', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/home/jest.config.js b/libs/home/jest.config.js index 7fb697a65..8523ef861 100644 --- a/libs/home/jest.config.js +++ b/libs/home/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/home', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/image-comparison/jest.config.js b/libs/image-comparison/jest.config.js index 2ff7b289c..03c86bb19 100644 --- a/libs/image-comparison/jest.config.js +++ b/libs/image-comparison/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/image-comparison', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/json-diff/jest.config.js b/libs/json-diff/jest.config.js index d31f7dc1e..11639878a 100644 --- a/libs/json-diff/jest.config.js +++ b/libs/json-diff/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/json-diff', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/led/jest.config.js b/libs/led/jest.config.js index be60ea885..b92e6d316 100644 --- a/libs/led/jest.config.js +++ b/libs/led/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/led', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/loading-overlay/jest.config.js b/libs/loading-overlay/jest.config.js index 7cec1f9d5..7914fcf47 100644 --- a/libs/loading-overlay/jest.config.js +++ b/libs/loading-overlay/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/loading-overlay', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/navigator/jest.config.js b/libs/navigator/jest.config.js index 5ae1793be..4df4ddb49 100644 --- a/libs/navigator/jest.config.js +++ b/libs/navigator/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/navigator', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/ngx-utils/jest.config.js b/libs/ngx-utils/jest.config.js index e0aa99d9f..3352ac48c 100644 --- a/libs/ngx-utils/jest.config.js +++ b/libs/ngx-utils/jest.config.js @@ -4,7 +4,8 @@ module.exports = { transformIgnorePatterns: ['node_modules/(?!date-fns)'], coverageDirectory: '../../coverage/libs/ngx-utils', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', - ], + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' + ] }; diff --git a/libs/ngx-utils/src/lib/directives/ng-let/ng-let.directive.spec.ts b/libs/ngx-utils/src/lib/directives/ng-let/ng-let.directive.spec.ts index b7bcd012b..bd76f2247 100644 --- a/libs/ngx-utils/src/lib/directives/ng-let/ng-let.directive.spec.ts +++ b/libs/ngx-utils/src/lib/directives/ng-let/ng-let.directive.spec.ts @@ -5,7 +5,6 @@ import { By } from '@angular/platform-browser'; import { Observable, of } from 'rxjs'; import { NgLetDirective } from './ng-let.directive'; import { NgLetModule } from './ng-let.module'; -import { MatPaginator } from '@angular/material'; @Component({ template: '', @@ -24,7 +23,7 @@ class TestComponent { imports: [NgLetModule, CommonModule], exports: [NgLetModule, TestComponent], }) -class TestModule {} +class TestModule { } describe('ngLet directive', () => { let fixture: ComponentFixture; diff --git a/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.spec.ts b/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.spec.ts index 1ef4cbe06..8e4c2b183 100644 --- a/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.spec.ts +++ b/libs/ngx-utils/src/lib/directives/router-link-match/router-link-match.directive.spec.ts @@ -5,7 +5,6 @@ import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { RouterLinkMatchDirective } from './router-link-match.directive'; import { RouterLinkMatchModule } from './router-link-match.module'; -import { MatPaginator } from '@angular/material'; @Component({ template: ` @@ -18,7 +17,7 @@ import { MatPaginator } from '@angular/material'; `, selector: 'test-1', }) -class Test1Component {} +class Test1Component { } @Component({ template: ` @@ -32,7 +31,7 @@ class Test1Component {} `, selector: 'test-2', }) -class Test2Component {} +class Test2Component { } @Component({ template: ` @@ -47,7 +46,7 @@ class Test2Component {} `, selector: 'test-3', }) -class Test3Component {} +class Test3Component { } @Component({ template: ` @@ -71,7 +70,7 @@ class Test4Component { `, }) -class RootComponent {} +class RootComponent { } function advance(fixture: ComponentFixture): void { tick(); diff --git a/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.spec.ts b/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.spec.ts index 1dc13e565..8f2a77398 100644 --- a/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.spec.ts +++ b/libs/ngx-utils/src/lib/pipes/date-fns/format-time-in-words.pipe.spec.ts @@ -4,7 +4,7 @@ import { DateFnsModule } from './date-fns.module'; import { FormatTimeInWordsPipe } from './format-time-in-words.pipe'; class MockChangeDetector { - markForCheck(): void {} + markForCheck(): void { } } function drinkFlavor(flavor) { @@ -15,7 +15,7 @@ function drinkFlavor(flavor) { describe('FormatTimeInWordsPipe', () => { const fakeChangeDetectorRef = { - markForCheck: () => {} + markForCheck: () => { } }; beforeEach(() => { @@ -52,10 +52,10 @@ describe('FormatTimeInWordsPipe', () => { expect(pipe.transform(yesterday)).toBe('1 day ago'); })); - it('should return `about 24 years ago` when date is 1995-12-17T03:24:00', inject( + it('should return `over 24 years ago` when date is 1995-12-17T03:24:00', inject( [FormatTimeInWordsPipe], (pipe: FormatTimeInWordsPipe) => { - expect(pipe.transform('1995-12-17T03:24:00')).toBe('about 24 years ago'); + expect(pipe.transform('1995-12-17T03:24:00')).toBe('over 24 years ago'); } )); diff --git a/libs/not-found/jest.config.js b/libs/not-found/jest.config.js index 8db69ae2f..0af636ead 100644 --- a/libs/not-found/jest.config.js +++ b/libs/not-found/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/not-found', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/notifications/jest.config.js b/libs/notifications/jest.config.js index b47baed5a..ac2355f11 100644 --- a/libs/notifications/jest.config.js +++ b/libs/notifications/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/notifications', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/quickpanel/jest.config.js b/libs/quickpanel/jest.config.js index ed054c87b..73a8e62a7 100644 --- a/libs/quickpanel/jest.config.js +++ b/libs/quickpanel/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/quickpanel', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/scrollbar/jest.config.js b/libs/scrollbar/jest.config.js index cd748a817..f37330c7f 100644 --- a/libs/scrollbar/jest.config.js +++ b/libs/scrollbar/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/scrollbar', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/shared/jest.config.js b/libs/shared/jest.config.js index 4c1d4ea64..08d3951e8 100644 --- a/libs/shared/jest.config.js +++ b/libs/shared/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/shared', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/sidenav/jest.config.js b/libs/sidenav/jest.config.js index f15af5d9d..c548833ad 100644 --- a/libs/sidenav/jest.config.js +++ b/libs/sidenav/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/sidenav', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/socketio-plugin/jest.config.js b/libs/socketio-plugin/jest.config.js index edb9ef0e2..51207e545 100644 --- a/libs/socketio-plugin/jest.config.js +++ b/libs/socketio-plugin/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/socketio-plugin', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/svg-viewer/jest.config.js b/libs/svg-viewer/jest.config.js index 912f968e7..45ca44ff0 100644 --- a/libs/svg-viewer/jest.config.js +++ b/libs/svg-viewer/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/svg-viewer', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/theme-picker/jest.config.js b/libs/theme-picker/jest.config.js index b67ed7f6a..438fbd4d1 100644 --- a/libs/theme-picker/jest.config.js +++ b/libs/theme-picker/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/theme-picker', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/toolbar/jest.config.js b/libs/toolbar/jest.config.js index e00e59792..93070d5a3 100644 --- a/libs/toolbar/jest.config.js +++ b/libs/toolbar/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/toolbar', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], }; diff --git a/libs/widgets/jest.config.js b/libs/widgets/jest.config.js index 8f14336ba..c9aa10d16 100644 --- a/libs/widgets/jest.config.js +++ b/libs/widgets/jest.config.js @@ -3,7 +3,8 @@ module.exports = { preset: '../../jest.config.js', coverageDirectory: '../../coverage/libs/widgets', snapshotSerializers: [ - 'jest-preset-angular/AngularSnapshotSerializer.js', - 'jest-preset-angular/HTMLCommentSerializer.js', + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js' ], };