Skip to content

Update to latest SK and fix issues #192

Update to latest SK and fix issues

Update to latest SK and fix issues #192

GitHub Actions / test results (ubuntu-latest, node18.x, Release) failed Sep 23, 2023 in 1s

test results (ubuntu-latest, node18.x, Release) ❌

Tests failed

Report Passed Failed Skipped Time
test/dotnet6-node18.x-Release/_fv-az590-643_2023-09-23_08_41_10.trx 34✅ 7❌ 3⚪ 100s
test/dotnet8-node18.x-Release/_fv-az590-643_2023-09-23_08_42_51.trx 59✅ 7❌ 3⚪ 130s

❌ test/dotnet6-node18.x-Release/_fv-az590-643_2023-09-23_08_41_10.trx

44 tests were completed in 100s with 34 passed, 7 failed and 3 skipped.

Test suite Passed Failed Skipped Time
Microsoft.JavaScript.NodeApi.Test.HostedClrTests 28✅ 34s
Microsoft.JavaScript.NodeApi.Test.JSProjectTests 4❌ 60s
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests 3⚪ 3ms
Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests 6✅ 3❌ 110ms

✅ Microsoft.JavaScript.NodeApi.Test.HostedClrTests

✅ Test(id: "edgejs-perf/measure-latency")
✅ Test(id: "napi-dotnet-init/custom_export")
✅ Test(id: "napi-dotnet-init/custom_init")
✅ Test(id: "napi-dotnet/async_methods")
✅ Test(id: "napi-dotnet/complex_types")
✅ Test(id: "napi-dotnet/delegates")
✅ Test(id: "napi-dotnet/dynamic_generics")
✅ Test(id: "napi-dotnet/dynamic_invoke")
✅ Test(id: "napi-dotnet/dynamic_optional_params")
✅ Test(id: "napi-dotnet/errors")
✅ Test(id: "napi-dotnet/hello")
✅ Test(id: "napi-dotnet/module_class")
✅ Test(id: "napi-dotnet/multi_instance")
✅ Test(id: "napi-dotnet/streams")
✅ Test(id: "node-addon-api/basic_types/array")
✅ Test(id: "node-addon-api/basic_types/boolean")
✅ Test(id: "node-addon-api/basic_types/number")
✅ Test(id: "node-addon-api/basic_types/value")
✅ Test(id: "node-addon-api/object/delete_property")
✅ Test(id: "node-addon-api/object/finalizer")
✅ Test(id: "node-addon-api/object/get_property")
✅ Test(id: "node-addon-api/object/has_own_property")
✅ Test(id: "node-addon-api/object/has_property")
✅ Test(id: "node-addon-api/object/object_freeze_seal")
✅ Test(id: "node-addon-api/object/object")
✅ Test(id: "node-addon-api/object/set_property")
✅ Test(id: "node-addon-api/object/subscript_operator")
✅ Test(id: "node-addon-api/testUtil")

❌ Microsoft.JavaScript.NodeApi.Test.JSProjectTests

❌ Test(id: "projects/js-cjs/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/js-cjs-ts-build.log
❌ Test(id: "projects/js-esm/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/js-esm-ts-build.log
❌ Test(id: "projects/ts-cjs/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/ts-cjs-ts-build.log
❌ Test(id: "projects/ts-esm/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/ts-esm-ts-build.log

✅ Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests

⚪ NodejsErrorPropagation
⚪ NodejsStart
⚪ NodejsUnhandledRejection

❌ Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests

✅ GenerateEnum
❌ GenerateGenericClass
	Assert.Equal() Failure
	                                   ↓ (pos 174)
	Expected: ···nericClass$$1<T> {\n\t/** constructor */\n\tnew(value: T): Generi···
	Actual:   ···nericClass$$1<T> {\n\tnew(value: T): GenericClass$1<T>;\n\n\t/** s···
	                                   ↑ (pos 174)
✅ GenerateGenericDelegate
❌ GenerateGenericInterface
	Assert.Equal() Failure
	                                     ↓ (pos 308)
	Expected: ···\tTestProperty: T;\n\n\t/** instance-method */\n\tTestMethod(value:···
	Actual:   ···\tTestProperty: T;\n\n\tTestMethod(value: T): T;\n}
	                                     ↑ (pos 308)
❌ GenerateSimpleClass
	Assert.Equal() Failure
	                                 ↓ (pos 39)
	Expected: ···t class SimpleClass {\n\t/** constructor */\n\tconstructor();\n\n\t/···
	Actual:   ···t class SimpleClass implements unknown {\n\t/** constructor */\n···
	                                 ↑ (pos 39)
✅ GenerateSimpleDelegate
✅ GenerateSimpleInterface
✅ GenerateSimpleMethod
✅ GenerateSimpleProperty

❌ test/dotnet8-node18.x-Release/_fv-az590-643_2023-09-23_08_42_51.trx

69 tests were completed in 130s with 59 passed, 7 failed and 3 skipped.

Test suite Passed Failed Skipped Time
Microsoft.JavaScript.NodeApi.Test.HostedClrTests 28✅ 32s
Microsoft.JavaScript.NodeApi.Test.JSProjectTests 4❌ 60s
Microsoft.JavaScript.NodeApi.Test.NativeAotTests 25✅ 38s
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests 3⚪ 3ms
Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests 6✅ 3❌ 26ms

✅ Microsoft.JavaScript.NodeApi.Test.HostedClrTests

✅ Test(id: "edgejs-perf/measure-latency")
✅ Test(id: "napi-dotnet-init/custom_export")
✅ Test(id: "napi-dotnet-init/custom_init")
✅ Test(id: "napi-dotnet/async_methods")
✅ Test(id: "napi-dotnet/complex_types")
✅ Test(id: "napi-dotnet/delegates")
✅ Test(id: "napi-dotnet/dynamic_generics")
✅ Test(id: "napi-dotnet/dynamic_invoke")
✅ Test(id: "napi-dotnet/dynamic_optional_params")
✅ Test(id: "napi-dotnet/errors")
✅ Test(id: "napi-dotnet/hello")
✅ Test(id: "napi-dotnet/module_class")
✅ Test(id: "napi-dotnet/multi_instance")
✅ Test(id: "napi-dotnet/streams")
✅ Test(id: "node-addon-api/basic_types/array")
✅ Test(id: "node-addon-api/basic_types/boolean")
✅ Test(id: "node-addon-api/basic_types/number")
✅ Test(id: "node-addon-api/basic_types/value")
✅ Test(id: "node-addon-api/object/delete_property")
✅ Test(id: "node-addon-api/object/finalizer")
✅ Test(id: "node-addon-api/object/get_property")
✅ Test(id: "node-addon-api/object/has_own_property")
✅ Test(id: "node-addon-api/object/has_property")
✅ Test(id: "node-addon-api/object/object_freeze_seal")
✅ Test(id: "node-addon-api/object/object")
✅ Test(id: "node-addon-api/object/set_property")
✅ Test(id: "node-addon-api/object/subscript_operator")
✅ Test(id: "node-addon-api/testUtil")

❌ Microsoft.JavaScript.NodeApi.Test.JSProjectTests

❌ Test(id: "projects/js-cjs/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/js-cjs-ts-build.log
❌ Test(id: "projects/js-esm/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/js-esm-ts-build.log
❌ Test(id: "projects/ts-cjs/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/ts-cjs-ts-build.log
❌ Test(id: "projects/ts-esm/test")
	Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/ts-esm-ts-build.log

✅ Microsoft.JavaScript.NodeApi.Test.NativeAotTests

✅ Test(id: "edgejs-perf/measure-latency")
✅ Test(id: "napi-dotnet-init/custom_export")
✅ Test(id: "napi-dotnet-init/custom_init")
✅ Test(id: "napi-dotnet/async_methods")
✅ Test(id: "napi-dotnet/complex_types")
✅ Test(id: "napi-dotnet/delegates")
✅ Test(id: "napi-dotnet/errors")
✅ Test(id: "napi-dotnet/hello")
✅ Test(id: "napi-dotnet/module_class")
✅ Test(id: "napi-dotnet/multi_instance")
✅ Test(id: "napi-dotnet/streams")
✅ Test(id: "node-addon-api/basic_types/array")
✅ Test(id: "node-addon-api/basic_types/boolean")
✅ Test(id: "node-addon-api/basic_types/number")
✅ Test(id: "node-addon-api/basic_types/value")
✅ Test(id: "node-addon-api/object/delete_property")
✅ Test(id: "node-addon-api/object/finalizer")
✅ Test(id: "node-addon-api/object/get_property")
✅ Test(id: "node-addon-api/object/has_own_property")
✅ Test(id: "node-addon-api/object/has_property")
✅ Test(id: "node-addon-api/object/object_freeze_seal")
✅ Test(id: "node-addon-api/object/object")
✅ Test(id: "node-addon-api/object/set_property")
✅ Test(id: "node-addon-api/object/subscript_operator")
✅ Test(id: "node-addon-api/testUtil")

✅ Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests

⚪ NodejsErrorPropagation
⚪ NodejsStart
⚪ NodejsUnhandledRejection

❌ Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests

✅ GenerateEnum
❌ GenerateGenericClass
	Assert.Equal() Failure
	                                   ↓ (pos 174)
	Expected: ···nericClass$$1<T> {\n\t/** constructor */\n\tnew(value: T): Generi···
	Actual:   ···nericClass$$1<T> {\n\tnew(value: T): GenericClass$1<T>;\n\n\t/** s···
	                                   ↑ (pos 174)
✅ GenerateGenericDelegate
❌ GenerateGenericInterface
	Assert.Equal() Failure
	                                     ↓ (pos 308)
	Expected: ···\tTestProperty: T;\n\n\t/** instance-method */\n\tTestMethod(value:···
	Actual:   ···\tTestProperty: T;\n\n\tTestMethod(value: T): T;\n}
	                                     ↑ (pos 308)
❌ GenerateSimpleClass
	Assert.Equal() Failure
	                                 ↓ (pos 39)
	Expected: ···t class SimpleClass {\n\t/** constructor */\n\tconstructor();\n\n\t/···
	Actual:   ···t class SimpleClass implements unknown {\n\t/** constructor */\n···
	                                 ↑ (pos 39)
✅ GenerateSimpleDelegate
✅ GenerateSimpleInterface
✅ GenerateSimpleMethod
✅ GenerateSimpleProperty

Annotations

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/js-cjs/test")

Failed test found in:
  test/dotnet6-node18.x-Release/_fv-az590-643_2023-09-23_08_41_10.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/js-cjs-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/js-cjs-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/js-esm/test")

Failed test found in:
  test/dotnet6-node18.x-Release/_fv-az590-643_2023-09-23_08_41_10.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/js-esm-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/js-esm-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/ts-cjs/test")

Failed test found in:
  test/dotnet6-node18.x-Release/_fv-az590-643_2023-09-23_08_41_10.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/ts-cjs-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/ts-cjs-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/ts-esm/test")

Failed test found in:
  test/dotnet6-node18.x-Release/_fv-az590-643_2023-09-23_08_41_10.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/ts-esm-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net6.0/ts-esm-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40

Check failure on line 200 in test/TypeDefsGeneratorTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests ► GenerateGenericClass

Failed test found in:
  test/dotnet6-node18.x-Release/_fv-az590-643_2023-09-23_08_41_10.trx
Error:
  Assert.Equal() Failure
                                     ↓ (pos 174)
  Expected: ···nericClass$$1<T> {\n\t/** constructor */\n\tnew(value: T): Generi···
  Actual:   ···nericClass$$1<T> {\n\tnew(value: T): GenericClass$1<T>;\n\n\t/** s···
                                     ↑ (pos 174)
Raw output
Assert.Equal() Failure
                                   ↓ (pos 174)
Expected: ···nericClass$$1<T> {\n\t/** constructor */\n\tnew(value: T): Generi···
Actual:   ···nericClass$$1<T> {\n\tnew(value: T): GenericClass$1<T>;\n\n\t/** s···
                                   ↑ (pos 174)
   at Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests.GenerateGenericClass() in /home/runner/work/node-api-dotnet/node-api-dotnet/test/TypeDefsGeneratorTests.cs:line 200

Check failure on line 164 in test/TypeDefsGeneratorTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests ► GenerateGenericInterface

Failed test found in:
  test/dotnet6-node18.x-Release/_fv-az590-643_2023-09-23_08_41_10.trx
Error:
  Assert.Equal() Failure
                                       ↓ (pos 308)
  Expected: ···\tTestProperty: T;\n\n\t/** instance-method */\n\tTestMethod(value:···
  Actual:   ···\tTestProperty: T;\n\n\tTestMethod(value: T): T;\n}
                                       ↑ (pos 308)
Raw output
Assert.Equal() Failure
                                     ↓ (pos 308)
Expected: ···\tTestProperty: T;\n\n\t/** instance-method */\n\tTestMethod(value:···
Actual:   ···\tTestProperty: T;\n\n\tTestMethod(value: T): T;\n}
                                     ↑ (pos 308)
   at Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests.GenerateGenericInterface() in /home/runner/work/node-api-dotnet/node-api-dotnet/test/TypeDefsGeneratorTests.cs:line 164

Check failure on line 76 in test/TypeDefsGeneratorTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests ► GenerateSimpleClass

Failed test found in:
  test/dotnet6-node18.x-Release/_fv-az590-643_2023-09-23_08_41_10.trx
Error:
  Assert.Equal() Failure
                                   ↓ (pos 39)
  Expected: ···t class SimpleClass {\n\t/** constructor */\n\tconstructor();\n\n\t/···
  Actual:   ···t class SimpleClass implements unknown {\n\t/** constructor */\n···
                                   ↑ (pos 39)
Raw output
Assert.Equal() Failure
                                 ↓ (pos 39)
Expected: ···t class SimpleClass {\n\t/** constructor */\n\tconstructor();\n\n\t/···
Actual:   ···t class SimpleClass implements unknown {\n\t/** constructor */\n···
                                 ↑ (pos 39)
   at Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests.GenerateSimpleClass() in /home/runner/work/node-api-dotnet/node-api-dotnet/test/TypeDefsGeneratorTests.cs:line 76

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/js-cjs/test")

Failed test found in:
  test/dotnet8-node18.x-Release/_fv-az590-643_2023-09-23_08_42_51.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/js-cjs-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/js-cjs-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40
   at InvokeStub_JSProjectTests.Test(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/js-esm/test")

Failed test found in:
  test/dotnet8-node18.x-Release/_fv-az590-643_2023-09-23_08_42_51.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/js-esm-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/js-esm-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40
   at InvokeStub_JSProjectTests.Test(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/ts-cjs/test")

Failed test found in:
  test/dotnet8-node18.x-Release/_fv-az590-643_2023-09-23_08_42_51.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/ts-cjs-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/ts-cjs-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

@github-actions github-actions / test results (ubuntu-latest, node18.x, Release)

Microsoft.JavaScript.NodeApi.Test.JSProjectTests ► Test(id: "projects/ts-esm/test")

Failed test found in:
  test/dotnet8-node18.x-Release/_fv-az590-643_2023-09-23_08_42_51.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/ts-esm-ts-build.log
Raw output
Assert.Fail(): TS compile exited with code: 2. Full output: /home/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/projects/net8.0/ts-esm-ts-build.log
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.BuildTestProjectTypeScript(String projectName, String logFilePath) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in /home/runner/work/node-api-dotnet/node-api-dotnet/test/JSProjectTests.cs:line 40
   at InvokeStub_JSProjectTests.Test(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)