Skip to content

Commit

Permalink
Fix type checking issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aliuk2012 committed Dec 18, 2024
1 parent 5cdfc91 commit 1e94e4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion server/utils/assessments/getSections.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Assess from '../../form-pages/assess'
import { applicationFactory, assessmentFactory } from '../../testutils/factories'
import getSections from './getSections'
import isAssessment from './isAssessment'
import { Task } from '@approved-premises/ui'

Check failure on line 6 in server/utils/assessments/getSections.test.ts

View workflow job for this annotation

GitHub Actions / Linting 🔎

`@approved-premises/ui` import should occur before import of `../../form-pages/apply`

jest.mock('../../form-pages/apply', () => {
return {
Expand All @@ -21,7 +22,7 @@ jest.mock('../../form-pages/apply', () => {
{
title: 'Check your answers',
name: 'CheckYourAnswers',
tasks: [],
tasks: [] as Array<Task>,
},
],
}
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"moduleResolution": "node",
"outDir": "./dist",
"sourceMap": true,
"suppressImplicitAnyIndexErrors": true,
"skipLibCheck": true,
"noEmit": false,
"allowJs": true,
Expand Down

0 comments on commit 1e94e4c

Please sign in to comment.