From 9f9864a901eae4debc2ddcde9355c143e9a9ad10 Mon Sep 17 00:00:00 2001 From: D050513 Date: Tue, 28 Apr 2026 08:45:09 +0200 Subject: [PATCH] `it = it.skip`breaks with mocha Co-authored-by: Copilot --- test/protocols/hcql-adapter.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/protocols/hcql-adapter.test.js b/test/protocols/hcql-adapter.test.js index 59d0a16..a56d86f 100644 --- a/test/protocols/hcql-adapter.test.js +++ b/test/protocols/hcql-adapter.test.js @@ -2,7 +2,10 @@ const cds = require('@sap/cds/lib') const { GET, POST, DELETE, expect, axios } = cds.test(__dirname) // Fetch API disallows GET|HEAD requests with body -if (axios.constructor.name === 'Naxios') it = it.skip +if (axios.constructor.name === 'Naxios') { + const { it } = global + global.it = (title) => it(title) +} const _unwrap = data => { data = data.data ?? data