Skip to content

Deprecation warning in Mocha's test #2802

@ScottFreeCode

Description

@ScottFreeCode

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsMocha can use your help with this one!type: choregenerally 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