-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): read dependencies via dotnet list reference
- Loading branch information
1 parent
80bcb04
commit 071f557
Showing
14 changed files
with
450 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { workspaceRoot } from '@nx/devkit'; | ||
import { resolveReferenceToProject } from './create-dependencies'; | ||
|
||
describe('createDependencies', () => { | ||
describe('resolveReferenceToProject', () => { | ||
it('should find project in rootMap', () => { | ||
expect( | ||
resolveReferenceToProject( | ||
'../../libs/my-lib/MyLib.csproj', | ||
'apps/my-app/MyApp.csproj', | ||
{ | ||
'libs/my-lib': 'my-lib', | ||
'apps/my-app': 'my-app', | ||
}, | ||
{ | ||
workspaceRoot, | ||
}, | ||
), | ||
).toEqual('my-lib'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.