Skip to content

Commit 4adc67c

Browse files
committed
test: fix type casting issues in upload test
1 parent f9cc434 commit 4adc67c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

apps/web/src/utils/__tests__/upload.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Zod3', () => {
6161
score: z3.number(),
6262
notes: z3.string()
6363
})
64-
} as AnyUnilingualFormInstrument;
64+
} as unknown as AnyUnilingualFormInstrument;
6565

6666
it('should process valid CSV data', async () => {
6767
const csvContent = unparse([
@@ -92,7 +92,7 @@ describe('Zod3', () => {
9292
required: z3.string(),
9393
optional: z3.string().optional()
9494
})
95-
} as AnyUnilingualFormInstrument;
95+
} as unknown as AnyUnilingualFormInstrument;
9696

9797
const csvContent = unparse([
9898
['subjectID', 'date', 'required', 'optional'],
@@ -114,7 +114,7 @@ describe('Zod3', () => {
114114
validationSchema: z3.object({
115115
completed: z3.boolean()
116116
})
117-
} as AnyUnilingualFormInstrument;
117+
} as unknown as AnyUnilingualFormInstrument;
118118

119119
const csvContent = unparse([
120120
['subjectID', 'date', 'completed'],
@@ -133,7 +133,7 @@ describe('Zod3', () => {
133133
validationSchema: z3.object({
134134
tags: z3.set(z3.enum(['tag1', 'tag2', 'tag3']))
135135
})
136-
} as AnyUnilingualFormInstrument;
136+
} as unknown as AnyUnilingualFormInstrument;
137137

138138
const csvContent = unparse([
139139
['subjectID', 'date', 'tags'],
@@ -200,7 +200,7 @@ describe('Zod4', () => {
200200
score: z4.number(),
201201
feedback: z4.string()
202202
})
203-
} as AnyUnilingualFormInstrument;
203+
} as unknown as AnyUnilingualFormInstrument;
204204

205205
it('should process valid CSV data', async () => {
206206
const csvContent = unparse([
@@ -234,7 +234,7 @@ describe('Zod4', () => {
234234
validationSchema: z4.object({
235235
eventDate: z4.date()
236236
})
237-
} as AnyUnilingualFormInstrument;
237+
} as unknown as AnyUnilingualFormInstrument;
238238

239239
const csvContent = unparse([
240240
['subjectID', 'date', 'eventDate'],
@@ -253,7 +253,7 @@ describe('Zod4', () => {
253253
validationSchema: z4.object({
254254
status: z4.enum(['pending', 'active', 'completed'])
255255
})
256-
} as AnyUnilingualFormInstrument;
256+
} as unknown as AnyUnilingualFormInstrument;
257257

258258
const csvContent = unparse([
259259
['subjectID', 'date', 'status'],
@@ -277,7 +277,7 @@ describe('Zod4', () => {
277277
})
278278
)
279279
})
280-
} as AnyUnilingualFormInstrument;
280+
} as unknown as AnyUnilingualFormInstrument;
281281

282282
const csvContent = unparse([
283283
['subjectID', 'date', 'items'],

0 commit comments

Comments
 (0)