import ParcelTestAPI from './src/index.ts'; const client = new ParcelTestAPI({ baseURL: 'http://127.0.0.1:8787', maxRetries: 0, timeout: 5000, logLevel: 'off', }); const { data, response } = await client.parcels.retrieve('par_123').withResponse(); const expected = { id: 'par_123', status: 'in_transit', updated_at: '2026-09-20T12:00:00Z', }; if (response.status !== 200 || JSON.stringify(data) !== JSON.stringify(expected)) { throw new Error('SDK response did not match the fixture'); } console.log(JSON.stringify({ http_status: response.status, parcel: data }, null, 2));