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

Commit f1b6212

Browse files
Merge pull request #91 from mauricerkelly/issue-90-not-finding-modules-in-test-directory
Await the result of isUmbrellaProject()
2 parents 639c692 + 575fd5d commit f1b6212

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/init.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ const isUmbrellaProject = async (filePath) => {
7474
};
7575

7676
const isTestFile = async (filePath) => {
77+
const umbrellaProject = await isUmbrellaProject(filePath);
7778
const project = await elixirProjectPath(filePath);
7879
const relativePath = relative(project, filePath);
79-
if (isUmbrellaProject(filePath)) {
80+
81+
if (umbrellaProject) {
8082
// Is the structure "apps/app_name/test/..."
8183
return relativePath.split(sep)[2] === 'test';
8284
}

0 commit comments

Comments
 (0)