Skip to content

Deprecation warning in Mocha's test

Closed

Description

var tmpDir = os.tmpDir().replace(new RegExp(path.sep + '$'), '');
is using os.tmpDir and that's printing a deprecation warning.

Depending on supported versions of Node and how far back the replacement os.tmpdir goes, we may have to dynamically detect the availability of os.tmpdir.

Otherwise, we should just change that one letter and be done with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: choregenerally involving deps, tooling, configuration, etc.generally involving deps, tooling, configuration, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions