diff --git a/packages/tests/src/transcription/benchmark.spec.ts b/packages/tests/src/transcription/benchmark.spec.ts index 16ad733bb..8427f61bf 100644 --- a/packages/tests/src/transcription/benchmark.spec.ts +++ b/packages/tests/src/transcription/benchmark.spec.ts @@ -20,7 +20,7 @@ interface TestResult { CER: number duration: number engine: TranscriptionEngine - dataThroughput: number // relevant ? + // dataThroughput: number // relevant ? // cpus: CpuInfo[] // https://nodejs.org/docs/latest-v18.x/api/os.html#oscpus // cpuUsages: CpuUsage[] // https://nodejs.org/docs/latest-v18.x/api/process.html#processcpuusagepreviousvalue // // os.totalmem() diff --git a/packages/tests/src/transcription/transcript/transcript-evaluator.spec.ts b/packages/tests/src/transcription/transcript/transcript-evaluator.spec.ts index 456dd4022..a5db1e778 100644 --- a/packages/tests/src/transcription/transcript/transcript-evaluator.spec.ts +++ b/packages/tests/src/transcription/transcript/transcript-evaluator.spec.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/no-unused-expressions, no-new */ +/* eslint-disable @typescript-eslint/no-unused-expressions, no-new, max-len */ import { TranscriptFile, TranscriptFileEvaluator } from '@peertube/peertube-transcription' import { buildAbsoluteFixturePath } from '@peertube/peertube-node-utils' import { join } from 'path' diff --git a/packages/tests/src/transcription/whisper/transcriber/openai-transcriber.spec.ts b/packages/tests/src/transcription/whisper/transcriber/openai-transcriber.spec.ts index 9e84debd0..7d30c3741 100644 --- a/packages/tests/src/transcription/whisper/transcriber/openai-transcriber.spec.ts +++ b/packages/tests/src/transcription/whisper/transcriber/openai-transcriber.spec.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/no-unused-expressions */ +/* eslint-disable @typescript-eslint/no-unused-expressions, max-len */ import { expect, config } from 'chai' import { createLogger } from 'winston' import { join } from 'path' diff --git a/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts b/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts index 2a9995ec3..e669a7d39 100644 --- a/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts +++ b/packages/tests/src/transcription/whisper/transcriber/timestamped-transcriber.spec.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/no-unused-expressions */ +/* eslint-disable @typescript-eslint/no-unused-expressions, max-len */ import { expect, config } from 'chai' import { createLogger } from 'winston' import { join } from 'path' @@ -43,7 +43,6 @@ describe('Linto timestamped Whisper transcriber', function () { format: 'vtt' }) - // eslint-disable-next-line @typescript-eslint/no-unused-expressions expect(existsSync(transcript.path), `Transcript file ${transcript.path} doesn't exist.`).to.be.true // Whisper timestamped should produce a transcript with micro seconds precisions. @@ -65,7 +64,6 @@ you format: 'srt' }) - // eslint-disable-next-line @typescript-eslint/no-unused-expressions expect(existsSync(transcript.path), `Transcript file ${transcript.path} doesn't exist.`).to.be.true expect(await readFile(transcript.path, 'utf8')).to.equal( `1 @@ -84,7 +82,6 @@ you format: 'txt' }) - // eslint-disable-next-line @typescript-eslint/no-unused-expressions expect(existsSync(transcript.path), `Transcript file ${transcript.path} doesn't exist.`).to.be.true expect(await readFile(transcript.path, 'utf8')).to.equal(`you `) @@ -99,7 +96,6 @@ you format: 'txt' }) - // eslint-disable-next-line @typescript-eslint/no-unused-expressions expect(existsSync(transcript.path), `Transcript file ${transcript.path} doesn't exist.`).to.be.true expect(await readFile(transcript.path, 'utf8')).to.equal( `... diff --git a/packages/tests/src/transcription/whisper/transcriber/whisper-ctranslate2.spec.ts b/packages/tests/src/transcription/whisper/transcriber/whisper-ctranslate2.spec.ts index 782d0488f..081a4a8d9 100644 --- a/packages/tests/src/transcription/whisper/transcriber/whisper-ctranslate2.spec.ts +++ b/packages/tests/src/transcription/whisper/transcriber/whisper-ctranslate2.spec.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/no-unused-expressions */ +/* eslint-disable @typescript-eslint/no-unused-expressions, max-len */ import { expect, config } from 'chai' import { createLogger } from 'winston' import { join } from 'path'