Turfjs / Turfjs/turf

Tests failing due to some rogue "in" -> "out" regex replacement

Open
#1,414 2 comments 0 reactions 1 assignee View on GitHub

@mfedderly is already working on this.

Since Aug 3, 2021.

operations
Dominant language
TypeScript
Stars
10.5k
Forks
1k
Avg merge
1h 11m
Merged PRs (30d)
4

Description

One of the odder error messages I've seen in a while, while running npm run test:

$ node -r @std/esm ../../scripts/validate-es5-dependencies.js
Done in 15.63s.
{ Error: Command failed: yarn run test
error Could not open cafile: EISDIR: illegal operation on a directory, read
fs.js:652
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/Users/stevebennett/odev/freelancoutg/geo/turf/packages/turf-nearest-neighbor-analysis/test/in/brazil-states-bbox.json'

Why is this so weird? Because the actual name of my directory on disk is ".../odev/freelancing/...". Something has replaced the "in" with "out".

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.