Skip to content

Update example to SK 1.1, fix TS generator and marshaller bugs #253

Update example to SK 1.1, fix TS generator and marshaller bugs

Update example to SK 1.1, fix TS generator and marshaller bugs #253

GitHub Actions / test results (windows-latest, node18.x, Release) failed Jan 19, 2024 in 1s

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

Tests failed

Report Passed Failed Skipped Time
test/dotnet6-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_28_06.trx 62✅ 2❌ 5⚪ 97s
test/dotnet8-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_29_50.trx 83✅ 6❌ 5⚪ 121s
test/netfx47-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_27_17.trx 50✅ 5⚪ 38s

❌ test/dotnet6-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_28_06.trx

69 tests were completed in 97s with 62 passed, 2 failed and 5 skipped.

Test suite Passed Failed Skipped Time
Microsoft.JavaScript.NodeApi.Test.GCTests 1⚪ 1ms
Microsoft.JavaScript.NodeApi.Test.HostedClrTests 28✅ 24s
Microsoft.JavaScript.NodeApi.Test.JSProjectTests 4✅ 62s
Microsoft.JavaScript.NodeApi.Test.JSReferenceTests 4✅ 2ms
Microsoft.JavaScript.NodeApi.Test.JSValueScopeTests 19✅ 21ms
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests 4⚪ 4ms
Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests 7✅ 2❌ 307ms

✅ Microsoft.JavaScript.NodeApi.Test.GCTests

⚪ GCTest

✅ 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")
✅ Test(id: "projects/js-esm/test")
✅ Test(id: "projects/ts-cjs/test")
✅ Test(id: "projects/ts-esm/test")

✅ Microsoft.JavaScript.NodeApi.Test.JSReferenceTests

✅ GetReferenceFromDifferentRootScope
✅ GetReferenceFromDifferentThread
✅ GetReferenceFromParentScope
✅ GetReferenceFromSameScope

✅ Microsoft.JavaScript.NodeApi.Test.JSValueScopeTests

✅ AccessPropertyKeyFromClosedScope
✅ AccessValueFromClosedScope
✅ AccessValueFromDifferentRootScope
✅ AccessValueFromDifferentThread
✅ CreateCallbackScope
✅ CreateEscapableScopeWithinCallback
✅ CreateHandleScopeWithinCallback
✅ CreateHandleScopeWithinModule
✅ CreateHandleScopeWithinRoot
✅ CreateModuleScopeWithinNoContextScope
✅ CreateModuleScopeWithinRootScope
✅ CreateModuleScopeWithoutRoot
✅ CreateNoContextScope
✅ CreateRootScope
✅ CreateValueFromDifferentThread
✅ InvalidCallbackContextScopeNesting
✅ InvalidModuleContextScopeNesting
✅ InvalidNoContextScopeNesting
✅ InvalidRootContextScopeNesting

✅ Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests

⚪ NodejsCallFunction
⚪ NodejsErrorPropagation
⚪ NodejsStart
⚪ NodejsUnhandledRejection

❌ Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests

✅ GenerateEnum
❌ GenerateGenericClass
	Assert.Equal() Failure
	                                    ↓ (pos 184)
	Expected: ···Class$$1<T> {\r\n\t/** constructor */\r\n\tnew(value: T): GenericCl···
	Actual:   ···Class$$1<T> {\r\n\t/** static-property */\r\n\tTestStaticProperty: ···
	                                    ↑ (pos 184)
✅ GenerateGenericDelegate
✅ GenerateGenericInterface
❌ GenerateSimpleClass
	Assert.Equal() Failure
	                                    ↓ (pos 49)
	Expected: ···SimpleClass {\r\n\t/** constructor */\r\n\tconstructor();\r\n\r\n\t/** p···
	Actual:   ···SimpleClass {\r\n\t/** property */\r\n\tTestProperty: string;\r\n\r\n\t/···
	                                    ↑ (pos 49)
✅ GenerateSimpleDelegate
✅ GenerateSimpleInterface
✅ GenerateSimpleMethod
✅ GenerateSimpleProperty

❌ test/dotnet8-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_29_50.trx

94 tests were completed in 121s with 83 passed, 6 failed and 5 skipped.

Test suite Passed Failed Skipped Time
Microsoft.JavaScript.NodeApi.Test.GCTests 1⚪ 1ms
Microsoft.JavaScript.NodeApi.Test.HostedClrTests 28✅ 24s
Microsoft.JavaScript.NodeApi.Test.JSProjectTests 4❌ 62s
Microsoft.JavaScript.NodeApi.Test.JSReferenceTests 4✅ 2ms
Microsoft.JavaScript.NodeApi.Test.JSValueScopeTests 19✅ 17ms
Microsoft.JavaScript.NodeApi.Test.NativeAotTests 25✅ 31s
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests 4⚪ 4ms
Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests 7✅ 2❌ 18ms

✅ Microsoft.JavaScript.NodeApi.Test.GCTests

⚪ GCTest

✅ 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: D:\a\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: D:\a\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: D:\a\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: D:\a\node-api-dotnet\node-api-dotnet\out\obj\Release\TestCases\projects\net8.0\ts-esm-ts-build.log

✅ Microsoft.JavaScript.NodeApi.Test.JSReferenceTests

✅ GetReferenceFromDifferentRootScope
✅ GetReferenceFromDifferentThread
✅ GetReferenceFromParentScope
✅ GetReferenceFromSameScope

✅ Microsoft.JavaScript.NodeApi.Test.JSValueScopeTests

✅ AccessPropertyKeyFromClosedScope
✅ AccessValueFromClosedScope
✅ AccessValueFromDifferentRootScope
✅ AccessValueFromDifferentThread
✅ CreateCallbackScope
✅ CreateEscapableScopeWithinCallback
✅ CreateHandleScopeWithinCallback
✅ CreateHandleScopeWithinModule
✅ CreateHandleScopeWithinRoot
✅ CreateModuleScopeWithinNoContextScope
✅ CreateModuleScopeWithinRootScope
✅ CreateModuleScopeWithoutRoot
✅ CreateNoContextScope
✅ CreateRootScope
✅ CreateValueFromDifferentThread
✅ InvalidCallbackContextScopeNesting
✅ InvalidModuleContextScopeNesting
✅ InvalidNoContextScopeNesting
✅ InvalidRootContextScopeNesting

✅ 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

⚪ NodejsCallFunction
⚪ NodejsErrorPropagation
⚪ NodejsStart
⚪ NodejsUnhandledRejection

❌ Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests

✅ GenerateEnum
❌ GenerateGenericClass
	Assert.Equal() Failure
	                                    ↓ (pos 184)
	Expected: ···Class$$1<T> {\r\n\t/** constructor */\r\n\tnew(value: T): GenericCl···
	Actual:   ···Class$$1<T> {\r\n\t/** static-property */\r\n\tTestStaticProperty: ···
	                                    ↑ (pos 184)
✅ GenerateGenericDelegate
✅ GenerateGenericInterface
❌ GenerateSimpleClass
	Assert.Equal() Failure
	                                    ↓ (pos 49)
	Expected: ···SimpleClass {\r\n\t/** constructor */\r\n\tconstructor();\r\n\r\n\t/** p···
	Actual:   ···SimpleClass {\r\n\t/** property */\r\n\tTestProperty: string;\r\n\r\n\t/···
	                                    ↑ (pos 49)
✅ GenerateSimpleDelegate
✅ GenerateSimpleInterface
✅ GenerateSimpleMethod
✅ GenerateSimpleProperty

✅ test/netfx47-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_27_17.trx

55 tests were completed in 38s with 50 passed, 0 failed and 5 skipped.

Test suite Passed Failed Skipped Time
Microsoft.JavaScript.NodeApi.Test.GCTests 1⚪ 1ms
Microsoft.JavaScript.NodeApi.Test.HostedClrTests 27✅ 32s
Microsoft.JavaScript.NodeApi.Test.JSReferenceTests 4✅ 42ms
Microsoft.JavaScript.NodeApi.Test.JSValueScopeTests 19✅ 57ms
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests 4⚪ 4ms

✅ Microsoft.JavaScript.NodeApi.Test.GCTests

⚪ GCTest

✅ 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/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.JSReferenceTests

✅ GetReferenceFromDifferentRootScope
✅ GetReferenceFromDifferentThread
✅ GetReferenceFromParentScope
✅ GetReferenceFromSameScope

✅ Microsoft.JavaScript.NodeApi.Test.JSValueScopeTests

✅ AccessPropertyKeyFromClosedScope
✅ AccessValueFromClosedScope
✅ AccessValueFromDifferentRootScope
✅ AccessValueFromDifferentThread
✅ CreateCallbackScope
✅ CreateEscapableScopeWithinCallback
✅ CreateHandleScopeWithinCallback
✅ CreateHandleScopeWithinModule
✅ CreateHandleScopeWithinRoot
✅ CreateModuleScopeWithinNoContextScope
✅ CreateModuleScopeWithinRootScope
✅ CreateModuleScopeWithoutRoot
✅ CreateNoContextScope
✅ CreateRootScope
✅ CreateValueFromDifferentThread
✅ InvalidCallbackContextScopeNesting
✅ InvalidModuleContextScopeNesting
✅ InvalidNoContextScopeNesting
✅ InvalidRootContextScopeNesting

✅ Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests

⚪ NodejsCallFunction
⚪ NodejsErrorPropagation
⚪ NodejsStart
⚪ NodejsUnhandledRejection

Annotations

Check failure on line 210 in test/TypeDefsGeneratorTests.cs

See this annotation in the file changed.

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

Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests ► GenerateGenericClass

Failed test found in:
  test/dotnet6-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_28_06.trx
Error:
  Assert.Equal() Failure
                                      ↓ (pos 184)
  Expected: ···Class$$1<T> {\r\n\t/** constructor */\r\n\tnew(value: T): GenericCl···
  Actual:   ···Class$$1<T> {\r\n\t/** static-property */\r\n\tTestStaticProperty: ···
                                      ↑ (pos 184)
Raw output
Assert.Equal() Failure
                                    ↓ (pos 184)
Expected: ···Class$$1<T> {\r\n\t/** constructor */\r\n\tnew(value: T): GenericCl···
Actual:   ···Class$$1<T> {\r\n\t/** static-property */\r\n\tTestStaticProperty: ···
                                    ↑ (pos 184)
   at Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests.GenerateGenericClass() in D:\a\node-api-dotnet\node-api-dotnet\test\TypeDefsGeneratorTests.cs:line 210

Check failure on line 78 in test/TypeDefsGeneratorTests.cs

See this annotation in the file changed.

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

Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests ► GenerateSimpleClass

Failed test found in:
  test/dotnet6-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_28_06.trx
Error:
  Assert.Equal() Failure
                                      ↓ (pos 49)
  Expected: ···SimpleClass {\r\n\t/** constructor */\r\n\tconstructor();\r\n\r\n\t/** p···
  Actual:   ···SimpleClass {\r\n\t/** property */\r\n\tTestProperty: string;\r\n\r\n\t/···
                                      ↑ (pos 49)
Raw output
Assert.Equal() Failure
                                    ↓ (pos 49)
Expected: ···SimpleClass {\r\n\t/** constructor */\r\n\tconstructor();\r\n\r\n\t/** p···
Actual:   ···SimpleClass {\r\n\t/** property */\r\n\tTestProperty: string;\r\n\r\n\t/···
                                    ↑ (pos 49)
   at Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests.GenerateSimpleClass() in D:\a\node-api-dotnet\node-api-dotnet\test\TypeDefsGeneratorTests.cs:line 78

Check failure on line 146 in test/JSProjectTests.cs

See this annotation in the file changed.

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

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

Failed test found in:
  test/dotnet8-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_29_50.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: D:\a\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: D:\a\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 D:\a\node-api-dotnet\node-api-dotnet\test\JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in D:\a\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 (windows-latest, node18.x, Release)

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

Failed test found in:
  test/dotnet8-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_29_50.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: D:\a\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: D:\a\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 D:\a\node-api-dotnet\node-api-dotnet\test\JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in D:\a\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 (windows-latest, node18.x, Release)

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

Failed test found in:
  test/dotnet8-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_29_50.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: D:\a\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: D:\a\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 D:\a\node-api-dotnet\node-api-dotnet\test\JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in D:\a\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 (windows-latest, node18.x, Release)

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

Failed test found in:
  test/dotnet8-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_29_50.trx
Error:
  Assert.Fail(): TS compile exited with code: 2. Full output: D:\a\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: D:\a\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 D:\a\node-api-dotnet\node-api-dotnet\test\JSProjectTests.cs:line 146
   at Microsoft.JavaScript.NodeApi.Test.JSProjectTests.Test(String id) in D:\a\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 210 in test/TypeDefsGeneratorTests.cs

See this annotation in the file changed.

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

Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests ► GenerateGenericClass

Failed test found in:
  test/dotnet8-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_29_50.trx
Error:
  Assert.Equal() Failure
                                      ↓ (pos 184)
  Expected: ···Class$$1<T> {\r\n\t/** constructor */\r\n\tnew(value: T): GenericCl···
  Actual:   ···Class$$1<T> {\r\n\t/** static-property */\r\n\tTestStaticProperty: ···
                                      ↑ (pos 184)
Raw output
Assert.Equal() Failure
                                    ↓ (pos 184)
Expected: ···Class$$1<T> {\r\n\t/** constructor */\r\n\tnew(value: T): GenericCl···
Actual:   ···Class$$1<T> {\r\n\t/** static-property */\r\n\tTestStaticProperty: ···
                                    ↑ (pos 184)
   at Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests.GenerateGenericClass() in D:\a\node-api-dotnet\node-api-dotnet\test\TypeDefsGeneratorTests.cs:line 210
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 78 in test/TypeDefsGeneratorTests.cs

See this annotation in the file changed.

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

Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests ► GenerateSimpleClass

Failed test found in:
  test/dotnet8-node18.x-Release/runneradmin_fv-az1564-536_2024-01-19_20_29_50.trx
Error:
  Assert.Equal() Failure
                                      ↓ (pos 49)
  Expected: ···SimpleClass {\r\n\t/** constructor */\r\n\tconstructor();\r\n\r\n\t/** p···
  Actual:   ···SimpleClass {\r\n\t/** property */\r\n\tTestProperty: string;\r\n\r\n\t/···
                                      ↑ (pos 49)
Raw output
Assert.Equal() Failure
                                    ↓ (pos 49)
Expected: ···SimpleClass {\r\n\t/** constructor */\r\n\tconstructor();\r\n\r\n\t/** p···
Actual:   ···SimpleClass {\r\n\t/** property */\r\n\tTestProperty: string;\r\n\r\n\t/···
                                    ↑ (pos 49)
   at Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests.GenerateSimpleClass() in D:\a\node-api-dotnet\node-api-dotnet\test\TypeDefsGeneratorTests.cs:line 78
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)