From cbc203c8d0fc3eded365313ad4b998d12a27fc84 Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 21 May 2024 23:07:01 +0200 Subject: [PATCH] fix: add File imports --- frontend/src/test/unit/services/setup/data.ts | 2 ++ frontend/src/test/unit/types/data.ts | 2 ++ frontend/src/test/unit/types/submission.test.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/frontend/src/test/unit/services/setup/data.ts b/frontend/src/test/unit/services/setup/data.ts index da2ca8bb..2a8357d3 100644 --- a/frontend/src/test/unit/services/setup/data.ts +++ b/frontend/src/test/unit/services/setup/data.ts @@ -1,3 +1,5 @@ +import { File } from "buffer"; + export const courses = [ { id: '1', diff --git a/frontend/src/test/unit/types/data.ts b/frontend/src/test/unit/types/data.ts index 6ae66940..ca641a5b 100644 --- a/frontend/src/test/unit/types/data.ts +++ b/frontend/src/test/unit/types/data.ts @@ -1,3 +1,5 @@ +import { File } from "buffer"; + export const assistantData = { id: 'assistant1_id', username: 'assistant1', diff --git a/frontend/src/test/unit/types/submission.test.ts b/frontend/src/test/unit/types/submission.test.ts index 2bdf56f6..627ecd56 100644 --- a/frontend/src/test/unit/types/submission.test.ts +++ b/frontend/src/test/unit/types/submission.test.ts @@ -1,4 +1,5 @@ import { describe, it, expect } from 'vitest'; +import { File } from "buffer"; import { Submission } from '@/types/submission/Submission.ts'; import { submissionData } from './data';