d3-dsv icon indicating copy to clipboard operation
d3-dsv copied to clipboard

improvement on issue55: TZ is not recognized as a command or cmdlet in Powershell context on Windows system

Open SafeWinter opened this issue 1 year ago • 1 comments

Issue description: When running command npm run test on my computer (Win10), the testing process aborted due to the unrecognized 'TZ' argument (see the attachment file)

Solution: Add cross-env as a dev-dependency would solve this incompatibility issue. After its installation, the original 'test' script need to be updated like this:

{
    // ...
    "scripts": {
        "test": "cross-env TZ=America/Los_Angeles mocha 'test/**/*-test.js' && eslint src test",
    // ...
}

Then rerun the test, everything get back to normal. improvement_issue55

SafeWinter avatar Oct 11 '24 07:10 SafeWinter

Adding cross-env by npm i cross-env -D and rerunning npm run test, all tests passed as expected:

All tests passed with the help of 'cross-env' module


Original issue: see #55

SafeWinter avatar Oct 11 '24 07:10 SafeWinter