Skip to content
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Commit d89f0f5

Browse files
committed
Fix test
1 parent 0a32f83 commit d89f0f5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/find-root/index.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const tempy = require('tempy')
55
const mkdirp = require('mkdirp')
66

77
test('Find root in a git project', t => {
8+
// can't check in .git folders so we just make one as part of the test
9+
mkdirp.sync(path.join(__dirname, 'fixtures', 'git-project', '.git'))
810
t.is(
911
findRoot(path.join(__dirname, 'fixtures', 'git-project', 'some', 'sub', 'dir')),
1012
path.join(__dirname, 'fixtures', 'git-project'),

0 commit comments

Comments
 (0)