process-cwd-default.js 227 B

12345678910
  1. import path from 'path';
  2. import pkgConf from 'pkg-conf';
  3. import test from '../..';
  4. test('test', t => {
  5. const conf = pkgConf.sync('ava');
  6. const pkgDir = path.dirname(pkgConf.filepath(conf));
  7. t.is(process.cwd(), pkgDir);
  8. });