Running TS client Node tests as part of build
Bonus: make sure build does not try to restore npm modules twice
This commit is contained in:
parent
a2d088bc3c
commit
7bae4e994a
|
|
@ -1,6 +1,11 @@
|
|||
<Project>
|
||||
<Target Name="RestoreNpm" AfterTargets="Restore">
|
||||
<Target Name="RestoreNpm" AfterTargets="Restore" Condition="'$(PreflightRestore)' != 'True'">
|
||||
<Message Text="Restoring NPM modules" Importance="high" />
|
||||
<Exec Command="npm install" WorkingDirectory="$(RepositoryRoot)/client-ts" />
|
||||
</Target>
|
||||
|
||||
<Target Name="RunTSClientNodeTests" AfterTargets="Test">
|
||||
<Message Text="Running TypeScript client Node tests" Importance="high" />
|
||||
<Exec Command="npm test" WorkingDirectory="$(RepositoryRoot)/client-ts" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue