Skip to content

Commit

Permalink
fix: http OPTIONS e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Dec 17, 2024
1 parent 4e8f024 commit c7c99ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e/cases/http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down
7 changes: 6 additions & 1 deletion wallaby.e2e.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function wallaby () {
export default function w (wallaby) {
return {
testFramework: 'mocha',
files: [
Expand Down Expand Up @@ -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',
};
Expand Down
4 changes: 2 additions & 2 deletions wallaby.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit c7c99ed

Please sign in to comment.