Skip to content

Commit e639e9a

Browse files
committed
Fix SignalR TS unit tests not running on CI
1 parent 3027997 commit e639e9a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/SignalR/clients/ts/client-ts.npmproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<Project>
22
<PropertyGroup>
3-
<IsTestProject>true</IsTestProject>
3+
<TestDependsOnAspNetRuntime>false</TestDependsOnAspNetRuntime>
4+
<TestDependsOnAspNetPackages>false</TestDependsOnAspNetPackages>
45
</PropertyGroup>
56

67
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\Directory.Build.props" />
78

89
<PropertyGroup>
10+
<!-- Keep this property after importing Directory.Build.props, it works around arcade assuming test projects have "Test" in the name -->
11+
<IsTestProject>true</IsTestProject>
912
<IsPackable>false</IsPackable>
1013
<IsBuildable>false</IsBuildable>
1114
<!-- Npm tests don't run on Helix currently, so we need to set this to false to still run the tests on non-Helix -->

src/SignalR/clients/ts/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
},
1212
reporters: [
1313
"default",
14-
["./common/node_modules/jest-junit/index.js", { "output": "../../../../artifacts/log/" + `${process.platform}` + ".signalr.junit.xml" }]
14+
["./common/node_modules/jest-junit/index.js", { "outputDirectory": "../../../../artifacts/log/", "outputName": `${process.platform}` + ".signalr.junit.xml" }]
1515
],
1616
transform: {
1717
"^.+\\.tsx?$": "./common/node_modules/ts-jest"

0 commit comments

Comments
 (0)