Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

require('supertest') has to come before require('replay') #147

Open
ggb667 opened this issue Mar 5, 2018 · 0 comments
Open

require('supertest') has to come before require('replay') #147

ggb667 opened this issue Mar 5, 2018 · 0 comments

Comments

@ggb667
Copy link

ggb667 commented Mar 5, 2018

Supertest has to come before replay's require because integration points for http are different. I think this could be fixed to make it agnostic.

//const Replay  = require('replay');
//Replay.mode = 'replay';
//Replay.fixtures = __dirname + '/fixtures/replay';var server = require("../../server/server");
var server = require("../../server/server");
var msContentPersonalization = require('supertest')(server);//('http://localhost:3101');
const Replay  = require('replay');
Replay.mode = 'replay';
Replay.fixtures = __dirname + '/fixtures/replay';

If you swap commenting for the bottom and top 3 lines node-replay won't function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant