Skip to content
This repository was archived by the owner on May 25, 2020. It is now read-only.
This repository was archived by the owner on May 25, 2020. It is now read-only.

Running tests against obfuscated code #21

@brian-mann

Description

@brian-mann

I was wondering how you would approach running tests against the obfuscated code.

For instance, while all my tests pass prior to obfuscation, after doing so it's possible I broke something. Using __dirname would point to a potentially incorrect path.

To avoid these headaches I was attempting to run all of my unit tests against the obfuscated code, but that doesn't work due to the require paths being completely wrong in the unit tests. I was wondering if you could give me some direction at solving this.

Because the single entry point is exported, it seems impossible to get access to the require'd files from outside of the file.

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