Fix for types derived from un-namespaced types. #26
GitHub Actions / test results (ubuntu-latest, net8.0, node20.x, Release)
failed
Apr 6, 2024 in 0s
101 passed, 1 failed and 13 skipped
❌ test/net8.0-node20.x-Release/_fv-az849-619_2024-04-06_06_24_33.trx
115 tests were completed in 141s 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✅ | 27s | ||
Microsoft.JavaScript.NodeApi.Test.JSProjectTests | 8✅ | 88s | ||
Microsoft.JavaScript.NodeApi.Test.JSReferenceTests | 4✅ | 2ms | ||
Microsoft.JavaScript.NodeApi.Test.JSValueScopeTests | 19✅ | 18ms | ||
Microsoft.JavaScript.NodeApi.Test.NativeAotTests | 27✅ | 1❌ | 24s | |
Microsoft.JavaScript.NodeApi.Test.NodejsEmbeddingTests | 11⚪ | 11ms | ||
Microsoft.JavaScript.NodeApi.Test.TypeDefsGeneratorTests | 11✅ | 26ms |
✅ 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(): /home/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> (/home/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: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.
/home/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> (/home/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: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: /home/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
github-actions / test results (ubuntu-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/_fv-az849-619_2024-04-06_06_24_33.trx
Error:
Assert.Fail(): /home/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> (/home/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: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.
/home/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> (/home/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: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: /home/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(): /home/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> (/home/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: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.
/home/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> (/home/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: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: /home/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 /home/runner/work/node-api-dotnet/node-api-dotnet/test/TestBuilder.cs:line 321
at Microsoft.JavaScript.NodeApi.Test.NativeAotTests.Test(String id) in /home/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)
Loading