diff --git a/test/e2e/cases/http.test.ts b/test/e2e/cases/http.test.ts index f5dfec59..18a61689 100644 --- a/test/e2e/cases/http.test.ts +++ b/test/e2e/cases/http.test.ts @@ -51,7 +51,7 @@ describe('http measurement', () => { expect(response.body.status).to.equal('finished'); expect(response.body.results[0].result.status).to.equal('finished'); - expect(response.body.results[0].result.rawBody.length).to.be.above(0); + expect(response.body.results[0].result.rawBody).to.equal(null); expect(response).to.matchApiSchema(); }); diff --git a/wallaby.e2e.js b/wallaby.e2e.js index 91d797c5..6c7a9566 100644 --- a/wallaby.e2e.js +++ b/wallaby.e2e.js @@ -1,4 +1,4 @@ -export default function wallaby () { +export default function w (wallaby) { return { testFramework: 'mocha', files: [ @@ -31,6 +31,11 @@ export default function wallaby () { env: 'NODE_ENV=test', }, }, + compilers: { + '**/*.ts?(x)': wallaby.compilers.typeScript({ + module: 'ESNext', + }), + }, workers: { restart: true, initial: 1, regular: 1 }, runMode: 'onsave', }; diff --git a/wallaby.js b/wallaby.js index 70efb7ec..c24c2739 100644 --- a/wallaby.js +++ b/wallaby.js @@ -1,7 +1,7 @@ import * as path from 'node:path'; import * as url from 'node:url'; -export default function wallaby (wallaby) { +export default function w (wallaby) { const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); return { @@ -44,7 +44,7 @@ export default function wallaby (wallaby) { params: { runner: '--experimental-specifier-resolution=node --loader ' + url.pathToFileURL(path.join(__dirname, 'node_modules/testdouble/lib/index.mjs')), - env: 'NODE_ENV=test;NEW_RELIC_ENABLED=false;NEW_RELIC_LOG_ENABLED=false;TEST_MODE=unit', + env: 'NODE_ENV=test;TEST_MODE=unit', }, }, compilers: {