Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

8 changes: 4 additions & 4 deletions frontend/src/app/features/hal/resources/hal-resource.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('HalResource', () => {

getStub = vi.spyOn(halResourceService, 'request').mockImplementation((verb:string, path:string) => {
if (verb === 'get' && path === '/api/hello') {
return of(halResourceService.createHalResource(source)) as any;
return of(halResourceService.createHalResource(source));
}
return false as any;
});
Expand Down Expand Up @@ -377,7 +377,7 @@ describe('HalResource', () => {
it('should have a callable self link', () => {
vi.spyOn(halResourceService, 'request').mockImplementation((verb:string, path:string) => {
if (verb === 'get' && path === 'unicorn/69') {
return of(halResourceService.createHalResource({})) as any;
return of(halResourceService.createHalResource({}));
}
return null as any;
});
Expand All @@ -388,7 +388,7 @@ describe('HalResource', () => {
it('should have a callable beaver', () => {
vi.spyOn(halResourceService, 'request').mockImplementation((verb:string, path:string) => {
if (verb === 'get' && path === 'justin/420') {
return of(halResourceService.createHalResource({})) as any;
return of(halResourceService.createHalResource({}));
}
return null as any;
});
Expand Down Expand Up @@ -726,7 +726,7 @@ describe('HalResource', () => {

getStub = vi.spyOn(halResourceService, 'request').mockImplementation((verb:string, path:string) => {
if (verb === 'get' && path === '/api/property') {
return of(result) as any;
return of(result);
}
return false as any;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('AttributeHelpTextModalService', () => {
let dialog:HTMLDialogElement|null;

beforeEach(() => {
fetchSpy = vi.spyOn(window, 'fetch'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment
fetchSpy = vi.spyOn(window, 'fetch');
});

beforeEach(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('autocompleter', () => {
}).compileComponents();

fixture = TestBed.createComponent(OpAutocompleterComponent);
getOptionsFnSpy = vi.fn().mockImplementation((searchTerm:string) => { // eslint-disable-line @typescript-eslint/no-unsafe-assignment
getOptionsFnSpy = vi.fn().mockImplementation((searchTerm:string) => {
return of(workPackagesStub).pipe(map((wps) => wps.filter((wp) => searchTerm !== '' && wp.subject.includes(searchTerm))));
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';
import { DisplayFieldContext } from 'core-app/shared/components/fields/display/display-field.service';
import { HalResource } from 'core-app/features/hal/resources/hal-resource';
import { IFieldSchema } from 'core-app/shared/components/fields/field.base';
import { Injector } from '@angular/core';

describe('WorkPackageDisplayField', () => {
let field:WorkPackageDisplayField;
Expand All @@ -21,7 +20,7 @@ describe('WorkPackageDisplayField', () => {

const mockInjector = {
get: (token:unknown, notFoundValue?:unknown) => serviceMap.get(token) ?? notFoundValue ?? {},
} as Injector;
};

field = new WorkPackageDisplayField('parent', {
injector: mockInjector,
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* See COPYRIGHT and LICENSE files for more details.
* ++
*/
/* eslint-disable @typescript-eslint/no-empty-function, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-empty-function, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return */

import { ActionEvent } from '@hotwired/stimulus';
import CheckableController from './checkable.controller';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/stimulus/controllers/flash.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* See COPYRIGHT and LICENSE files for more details.
* ++
*/
/* eslint-disable @typescript-eslint/no-unsafe-assignment */


import FlashController, { LIVE_REGION_ANNOUNCEMENT_DELAY, SUCCESS_AUTOHIDE_TIMEOUT } from './flash.controller';
import { setupStimulusTest, type StimulusTestContext } from 'core-stimulus/test-helpers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* See COPYRIGHT and LICENSE files for more details.
* ++
*/
/* eslint-disable @typescript-eslint/no-unsafe-assignment */


import ScrollIntoViewController from './scroll-into-view.controller';
import { setupStimulusTest, type StimulusTestContext } from 'core-stimulus/test-helpers';
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/turbo/helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TurboHelpers } from './helpers';

describe('TurboHelpers.showProgressBar / hideProgressBar', () => {
const progressBar = (Turbo.session.adapter as Turbo.BrowserAdapter).progressBar;
/* eslint-disable @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-empty-function */
/* eslint-disable @typescript-eslint/no-empty-function */
let setValueSpy:ReturnType<typeof vi.spyOn>;
let showSpy:ReturnType<typeof vi.spyOn>;
let hideSpy:ReturnType<typeof vi.spyOn>;
Expand All @@ -17,7 +17,7 @@ describe('TurboHelpers.showProgressBar / hideProgressBar', () => {
savedDelay = Turbo.config.drive.progressBarDelay;
Turbo.config.drive.progressBarDelay = 200;
});
/* eslint-enable @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-empty-function */
/* eslint-enable @typescript-eslint/no-empty-function */

afterEach(() => {
TurboHelpers.hideProgressBar();
Expand Down
8 changes: 6 additions & 2 deletions frontend/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
"src/turbo/setup.ts"
],
"include": [
"src/stimulus/controllers/**/*.ts",
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.d.ts"
],
"exclude": [
"src/stimulus/controllers/**/*.spec.ts"
"src/**/*.spec.ts",
"src/test-setup.ts",
"src/test-providers.ts",
"src/test-browser-polyfills.ts"
],
Comment thread
myabc marked this conversation as resolved.
"angularCompilerOptions": {
"strictTemplates": false
Expand Down
Loading
Loading