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 (macos-latest, net8.0, node18.x, Release) failed Apr 6, 2024 in 0s

101 passed, 1 failed and 13 skipped

Tests failed

❌ test/net8.0-node18.x-Release/_Mac-1712384240127_2024-04-06_06_27_29.trx

115 tests were completed in 287s 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✅ 52s
Microsoft.JavaScript.NodeApi.Test.JSProjectTests 8✅ 172s
Microsoft.JavaScript.NodeApi.Test.JSReferenceTests 4✅ 9ms
Microsoft.JavaScript.NodeApi.Test.JSValueScopeTests 19✅ 198ms
Microsoft.JavaScript.NodeApi.Test.NativeAotTests 27✅ 1❌ 59s
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests 11⚪ 11ms
Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests 11✅ 58ms

✅ 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(): /Users/runner/work/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> (/Users/runner/work/node-api-dotnet/node-api-dotnet/test/TestCases/napi-dotnet/no_namespace_type.js:10:8)
	    at Module._compile (node:internal/modules/cjs/loader:1364:14)
	    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
	    at Module.load (node:internal/modules/cjs/loader:1203:32)
	    at Module._load (node:internal/modules/cjs/loader:1019:12)
	    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
	    at node:internal/main/run_main_module:28:49
	
	Node.js v18.20.0
	
	Node process exited with code: 1. 
	/Users/runner/work/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> (/Users/runner/work/node-api-dotnet/node-api-dotnet/test/TestCases/napi-dotnet/no_namespace_type.js:10:8)
	    at Module._compile (node:internal/modules/cjs/loader:1364:14)
	    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
	    at Module.load (node:internal/modules/cjs/loader:1203:32)
	    at Module._load (node:internal/modules/cjs/loader:1019:12)
	    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
	    at node:internal/main/run_main_module:28:49
	
	Node.js v18.20.0
	
	Full output: /Users/runner/work/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 (macos-latest, net8.0, node18.x, Release)

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

Failed test found in:
  test/net8.0-node18.x-Release/_Mac-1712384240127_2024-04-06_06_27_29.trx
Error:
  Assert.Fail(): /Users/runner/work/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> (/Users/runner/work/node-api-dotnet/node-api-dotnet/test/TestCases/napi-dotnet/no_namespace_type.js:10:8)
      at Module._compile (node:internal/modules/cjs/loader:1364:14)
      at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
      at Module.load (node:internal/modules/cjs/loader:1203:32)
      at Module._load (node:internal/modules/cjs/loader:1019:12)
      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
      at node:internal/main/run_main_module:28:49
  
  Node.js v18.20.0
  
  Node process exited with code: 1. 
  /Users/runner/work/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> (/Users/runner/work/node-api-dotnet/node-api-dotnet/test/TestCases/napi-dotnet/no_namespace_type.js:10:8)
      at Module._compile (node:internal/modules/cjs/loader:1364:14)
      at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
      at Module.load (node:internal/modules/cjs/loader:1203:32)
      at Module._load (node:internal/modules/cjs/loader:1019:12)
      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
      at node:internal/main/run_main_module:28:49
  
  Node.js v18.20.0
  
  Full output: /Users/runner/work/node-api-dotnet/node-api-dotnet/out/obj/Release/TestCases/napi-dotnet/net8.0/aot-no_namespace_type.log
Raw output
Assert.Fail(): /Users/runner/work/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> (/Users/runner/work/node-api-dotnet/node-api-dotnet/test/TestCases/napi-dotnet/no_namespace_type.js:10:8)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    at node:internal/main/run_main_module:28:49

Node.js v18.20.0

Node process exited with code: 1. 
/Users/runner/work/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> (/Users/runner/work/node-api-dotnet/node-api-dotnet/test/TestCases/napi-dotnet/no_namespace_type.js:10:8)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    at node:internal/main/run_main_module:28:49

Node.js v18.20.0

Full output: /Users/runner/work/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 /Users/runner/work/node-api-dotnet/node-api-dotnet/test/TestBuilder.cs:line 321
   at Microsoft.JavaScript.NodeApi.Test.NativeAotTests.Test(String id) in /Users/runner/work/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)