unional / ava-fixture

Fixture test for https://github.com/avajs/ava
MIT License
5 stars 1 forks source link

perf: remove chdir() #13

Closed unional closed 7 years ago

unional commented 7 years ago

While setting process.cwd() to the case path is nice, it may be confusing to the user.

Let's consider removing this feature:

// was
ftest('case-1', (t, d) => {
  // process.cwd() => path to `case-1`
})

// new
ftest('case-1', (t, d) => {
  process.chdir(d.casePath);
})