Skip to content

Reload scenario failed with jest #83

@provDannyLaw

Description

@provDannyLaw

Hi,

I am trying out the node-config-reloadable dependency without success. I copied the test case

let config = require('config-reloadable');

describe("node-config load", () => {
    test("loading", () => {
        const r1 = config().get('rand');
        config.reloadConfigs();
        const r2 = config().get('rand');
        expect(r1).not.toEqual(r2);
    });
});

The expectation came back as false as the rand value did not get recalculated.

The dependencies I am using are

    "config": "3.3.7",
    "config-reloadable": "1.0.9",

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