Browse Source

Clean up cwd after tests

pull/3/head
Luke Childs 7 years ago
parent
commit
33df2789a7
  1. 2
      test/get-root-module.js

2
test/get-root-module.js

@ -1,8 +1,10 @@
import test from 'ava';
const cwd = process.cwd();
const pkgPath = require.resolve('../');
test.afterEach.always(() => {
process.chdir(cwd);
delete require.cache[pkgPath];
});

Loading…
Cancel
Save