Skip to content

Commit

Permalink
fix: change path.resolve to require-resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 20, 2021
1 parent 3f472b1 commit cc7b68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/instrument/src/babel/extract-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const componentRelatedMetrics = async (
const dependents = component.localDependencies
? Object.keys(component.localDependencies)
.filter(f => f.startsWith(`.${path.sep}`))
.map(f => path.resolve(componetFolder, f))
.map(f => require.resolve(f, { paths: [componetFolder] }))
: [];
const testResults = await extractTests(
[component.request, ...dependents],
Expand Down

0 comments on commit cc7b68c

Please sign in to comment.