Skip to content

Fix for types derived from un-namespaced types. #26

Fix for types derived from un-namespaced types.

Fix for types derived from un-namespaced types. #26

GitHub Actions / test results (windows-latest, net8.0, node20.x, Release) failed Apr 6, 2024 in 1s

101 passed, 1 failed and 13 skipped

Tests failed

❌ test/net8.0-node20.x-Release/runneradmin_fv-az521-57_2024-04-06_06_26_22.trx

115 tests were completed in 162s with 101 passed, 1 failed and 13 skipped.

Test suite Passed Failed Skipped Time
Microsoft.JavaScript.NodeApi.Test.GCTests 2⚪ 2ms
Microsoft.JavaScript.NodeApi.Test.HostedClrTests 32✅ 28s
Microsoft.JavaScript.NodeApi.Test.JSProjectTests 8✅ 104s
Microsoft.JavaScript.NodeApi.Test.JSReferenceTests 4✅ 8ms
Microsoft.JavaScript.NodeApi.Test.JSValueScopeTests 19✅ 11ms
Microsoft.JavaScript.NodeApi.Test.NativeAotTests 27✅ 1❌ 28s
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests 11⚪ 11ms
Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests 11✅ 24ms

✅ Microsoft.JavaScript.NodeApi.Test.GCTests

⚪ GCHandles
⚪ GCObjects

✅ 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_extensions")
✅ 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/no_namespace_type")
✅ Test(id: "napi-dotnet/overloads")
✅ 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/bigint")
✅ 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/default")
✅ Test(id: "projects/js-cjs/net8.0")
✅ Test(id: "projects/js-esm/default")
✅ Test(id: "projects/js-esm/net8.0")
✅ Test(id: "projects/ts-cjs/default")
✅ Test(id: "projects/ts-cjs/net8.0")
✅ Test(id: "projects/ts-esm/default")
✅ Test(id: "projects/ts-esm/net8.0")

✅ 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/no_namespace_type")
	Assert.Fail(): D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10
	dotnet.load(assemblyPath);
	       ^
	
	TypeError: Cannot read properties of undefined (reading 'load')
	    at Object.<anonymous> (D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10:8)
	    at Module._compile (node:internal/modules/cjs/loader:1369:14)
	    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
	    at Module.load (node:internal/modules/cjs/loader:1206:32)
	    at Module._load (node:internal/modules/cjs/loader:1022:12)
	    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
	    at node:internal/main/run_main_module:28:49
	
	Node.js v20.12.0
	
	Node process exited with code: 1. 
	D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10
	dotnet.load(assemblyPath);
	       ^
	
	TypeError: Cannot read properties of undefined (reading 'load')
	    at Object.<anonymous> (D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10:8)
	    at Module._compile (node:internal/modules/cjs/loader:1369:14)
	    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
	    at Module.load (node:internal/modules/cjs/loader:1206:32)
	    at Module._load (node:internal/modules/cjs/loader:1022:12)
	    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
	    at node:internal/main/run_main_module:28:49
	
	Node.js v20.12.0
	
	Full output: D:\a\node-api-dotnet\node-api-dotnet\out\obj\Release\TestCases\napi-dotnet\net8.0\aot-no_namespace_type.log
✅ Test(id: "napi-dotnet/overloads")
✅ 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/bigint")
✅ 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

⚪ CallFunction
⚪ ErrorPropagation
⚪ ImportBuiltinModule
⚪ ImportCommonJSModule
⚪ ImportCommonJSPackage
⚪ ImportESModule
⚪ ImportESPackage
⚪ MarshalClass
⚪ RestartEnvironment
⚪ StartEnvironment
⚪ UnhandledRejection

✅ Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests

✅ GenerateEnum
✅ GenerateExtensionMethods
✅ GenerateGenericClass
✅ GenerateGenericDelegate
✅ GenerateGenericInterface
✅ GenerateJSDocLink
✅ GenerateSimpleClass
✅ GenerateSimpleDelegate
✅ GenerateSimpleInterface
✅ GenerateSimpleMethod
✅ GenerateSimpleProperty

Annotations

Check failure on line 321 in test/TestBuilder.cs

See this annotation in the file changed.

@github-actions github-actions / test results (windows-latest, net8.0, node20.x, Release)

Microsoft.JavaScript.NodeApi.Test.NativeAotTests ► Test(id: "napi-dotnet/no_namespace_type")

Failed test found in:
  test/net8.0-node20.x-Release/runneradmin_fv-az521-57_2024-04-06_06_26_22.trx
Error:
  Assert.Fail(): D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10
  dotnet.load(assemblyPath);
         ^
  
  TypeError: Cannot read properties of undefined (reading 'load')
      at Object.<anonymous> (D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10:8)
      at Module._compile (node:internal/modules/cjs/loader:1369:14)
      at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
      at Module.load (node:internal/modules/cjs/loader:1206:32)
      at Module._load (node:internal/modules/cjs/loader:1022:12)
      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
      at node:internal/main/run_main_module:28:49
  
  Node.js v20.12.0
  
  Node process exited with code: 1. 
  D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10
  dotnet.load(assemblyPath);
         ^
  
  TypeError: Cannot read properties of undefined (reading 'load')
      at Object.<anonymous> (D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10:8)
      at Module._compile (node:internal/modules/cjs/loader:1369:14)
      at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
      at Module.load (node:internal/modules/cjs/loader:1206:32)
      at Module._load (node:internal/modules/cjs/loader:1022:12)
      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
      at node:internal/main/run_main_module:28:49
  
  Node.js v20.12.0
  
  Full output: D:\a\node-api-dotnet\node-api-dotnet\out\obj\Release\TestCases\napi-dotnet\net8.0\aot-no_namespace_type.log
Raw output
Assert.Fail(): D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10
dotnet.load(assemblyPath);
       ^

TypeError: Cannot read properties of undefined (reading 'load')
    at Object.<anonymous> (D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10:8)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Module.load (node:internal/modules/cjs/loader:1206:32)
    at Module._load (node:internal/modules/cjs/loader:1022:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49

Node.js v20.12.0

Node process exited with code: 1. 
D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10
dotnet.load(assemblyPath);
       ^

TypeError: Cannot read properties of undefined (reading 'load')
    at Object.<anonymous> (D:\a\node-api-dotnet\node-api-dotnet\test\TestCases\napi-dotnet\no_namespace_type.js:10:8)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Module.load (node:internal/modules/cjs/loader:1206:32)
    at Module._load (node:internal/modules/cjs/loader:1022:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49

Node.js v20.12.0

Full output: D:\a\node-api-dotnet\node-api-dotnet\out\obj\Release\TestCases\napi-dotnet\net8.0\aot-no_namespace_type.log
   at Microsoft.JavaScript.NodeApi.Test.TestBuilder.RunNodeTestCase(String jsFilePath, String logFilePath, IDictionary`2 testEnvironmentVariables) in D:\a\node-api-dotnet\node-api-dotnet\test\TestBuilder.cs:line 321
   at Microsoft.JavaScript.NodeApi.Test.NativeAotTests.Test(String id) in D:\a\node-api-dotnet\node-api-dotnet\test\NativeAotTests.cs:line 61
   at InvokeStub_NativeAotTests.Test(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)