@@ -15,7 +15,7 @@ import {
1515import { SimpleField } from "@/v2/parsing/inference/field/index.js" ;
1616import { MindeeHttpErrorV2 } from "@/v2/http/index.js" ;
1717import * as fs from "node:fs" ;
18- import { RESOURCE_PATH , V2_PRODUCT_PATH } from "../index.js" ;
18+ import { RESOURCE_PATH , V2_PRODUCT_PATH } from "../../ index.js" ;
1919import { Extraction } from "@/v2/product/index.js" ;
2020
2121function check422 ( err : unknown ) {
@@ -37,7 +37,7 @@ function checkEmptyActiveOptions(inference: ExtractionInference) {
3737 assert . equal ( inference . activeOptions ?. textContext , false ) ;
3838}
3939
40- describe ( "MindeeV2 – Client Integration Tests " , ( ) => {
40+ describe ( "MindeeV2 – Integration - Client " , ( ) => {
4141 let client : Client ;
4242 let modelId : string ;
4343
@@ -73,7 +73,7 @@ describe("MindeeV2 – Client Integration Tests", () => {
7373 dataSchemaReplace = fs . readFileSync ( dataSchemaReplacePath ) . toString ( ) ;
7474 } ) ;
7575
76- it ( "Empty, multi-page PDF – PathInput - enqueueAndGetResult must succeed " , async ( ) => {
76+ it ( "enqueueAndGetResult must succeed: Empty, multi-page PDF – PathInput" , async ( ) => {
7777 const source = new PathInput ( { inputPath : emptyPdfPath } ) ;
7878 const params = {
7979 modelId,
@@ -100,7 +100,7 @@ describe("MindeeV2 – Client Integration Tests", () => {
100100 checkEmptyActiveOptions ( inference ) ;
101101 } ) . timeout ( 60000 ) ;
102102
103- it ( "Filled, single-page image – PathInput - enqueueAndGetResult must succeed " , async ( ) => {
103+ it ( "enqueueAndGetResult must succeed: Filled, single-page image – PathInput" , async ( ) => {
104104 const source = new PathInput ( { inputPath : sampleImagePath } ) ;
105105 const params = {
106106 modelId,
@@ -139,7 +139,7 @@ describe("MindeeV2 – Client Integration Tests", () => {
139139 assert . equal ( inference . result . rawText ?. pages . length , 1 ) ;
140140 } ) . timeout ( 120000 ) ;
141141
142- it ( "Filled, single-page image – Base64Input - enqueueAndGetResult must succeed " , async ( ) => {
142+ it ( "enqueueAndGetResult must succeed: Filled, single-page image – Base64Input" , async ( ) => {
143143 const data = fs . readFileSync ( sampleBase64Path , "utf8" ) ;
144144 const source = new Base64Input ( { inputString : data , filename : "receipt.jpg" } ) ;
145145 const params = {
@@ -170,7 +170,7 @@ describe("MindeeV2 – Client Integration Tests", () => {
170170 checkEmptyActiveOptions ( inference ) ;
171171 } ) . timeout ( 120000 ) ;
172172
173- it ( "Invalid model ID – enqueue must raise 422" , async ( ) => {
173+ it ( "enqueue must raise 422: Invalid model ID " , async ( ) => {
174174 const source = new PathInput ( { inputPath : emptyPdfPath } ) ;
175175 const badParams = { modelId : "00000000-0000-0000-0000-000000000000" } ;
176176
@@ -182,7 +182,7 @@ describe("MindeeV2 – Client Integration Tests", () => {
182182 }
183183 } ) . timeout ( 60000 ) ;
184184
185- it ( "Invalid job ID – getInference must raise 422" , async ( ) => {
185+ it ( "getResult must raise 422: Invalid job ID " , async ( ) => {
186186 try {
187187 await client . getResult (
188188 Extraction ,
@@ -194,7 +194,7 @@ describe("MindeeV2 – Client Integration Tests", () => {
194194 }
195195 } ) . timeout ( 60000 ) ;
196196
197- it ( "HTTPS URL – enqueueAndGetResult must succeed" , async ( ) => {
197+ it ( "enqueueAndGetResult must succeed: HTTPS URL " , async ( ) => {
198198 const url = process . env . MINDEE_V2_SE_TESTS_BLANK_PDF_URL ?? "error-no-url-found" ;
199199 const source = new UrlInput ( { url } ) ;
200200 const params = new ExtractionParameters ( {
@@ -213,7 +213,7 @@ describe("MindeeV2 – Client Integration Tests", () => {
213213 assert . ok ( response . inference instanceof ExtractionInference ) ;
214214 } ) . timeout ( 60000 ) ;
215215
216- it ( "Data Schema Override - Overrides the data schema successfully" , async ( ) => {
216+ it ( "should override the data schema successfully" , async ( ) => {
217217 const source = new PathInput ( { inputPath : emptyPdfPath } ) ;
218218 const params = new ExtractionParameters ( {
219219 modelId,
0 commit comments