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

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

@ggb667

Description

@ggb667

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions