diff --git a/angular-workspace/projects/example-client-app/karma.conf.js b/angular-workspace/projects/example-client-app/karma.conf.js index 1b6181c936..cb3fb06a5c 100644 --- a/angular-workspace/projects/example-client-app/karma.conf.js +++ b/angular-workspace/projects/example-client-app/karma.conf.js @@ -20,6 +20,7 @@ module.exports = function (config) { // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html // for example, you can disable the random execution with `random: false` // or set a specific seed with `seed: 4321` + stopSpecOnExpectationFailure: false }, clearContext: false // leave Jasmine Spec Runner output visible in browser }, diff --git a/angular-workspace/projects/example-client-app/src/test.ts b/angular-workspace/projects/example-client-app/src/test.ts index 05cb63706e..ad9d734f9b 100644 --- a/angular-workspace/projects/example-client-app/src/test.ts +++ b/angular-workspace/projects/example-client-app/src/test.ts @@ -18,6 +18,8 @@ getTestBed().initTestEnvironment( } ); -// Elevate console errors to test failures +// Elevate console errors and warnings to test failures // eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any console.error = (data: any): void => fail(data); +// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any +console.warn = (data: any): void => fail(data); diff --git a/angular-workspace/projects/ni/nimble-angular/karma.conf.js b/angular-workspace/projects/ni/nimble-angular/karma.conf.js index d0e288b52b..ac2aa009a6 100644 --- a/angular-workspace/projects/ni/nimble-angular/karma.conf.js +++ b/angular-workspace/projects/ni/nimble-angular/karma.conf.js @@ -26,6 +26,7 @@ module.exports = config => { // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html // for example, you can disable the random execution with `random: false` // or set a specific seed with `seed: 4321` + stopSpecOnExpectationFailure: false }, clearContext: false // leave Jasmine Spec Runner output visible in browser }, diff --git a/angular-workspace/projects/ni/nimble-angular/src/thirdparty/directives/tests/value_accessor_integration.spec.ts b/angular-workspace/projects/ni/nimble-angular/src/thirdparty/directives/tests/value_accessor_integration.spec.ts index 5e9e4baecd..4be57cbfab 100644 --- a/angular-workspace/projects/ni/nimble-angular/src/thirdparty/directives/tests/value_accessor_integration.spec.ts +++ b/angular-workspace/projects/ni/nimble-angular/src/thirdparty/directives/tests/value_accessor_integration.spec.ts @@ -183,6 +183,8 @@ class TestNgSelectOption extends NgSelectOption {} input.nativeElement.value = 'updatedValue'; dispatchEvent(input.nativeElement, 'change'); + // [Nimble] Add a known empty expect to suppress warning + expect().nothing(); }); it('should support