• I pointed out the issue with inline testing when in same namespace... and that's what is failing for you. The context is different when the module is delivered from when you run the module source code inline in the application... because there it NOT a module.

  • when you run the module source code inline in the application... because there it NOT a module.

    Yes. I understand that. I'll repeat again. There is nothing wrong with the test file with the class (as a module) inline. The issue is when the module is used independently, called from a code file when using 'require()'

    From #1 above: "an error occurs when testing as a deployed module:"

    I also supplied that solution in 'codeTestConstructorExports.js' as proof.

About

Avatar for allObjects @allObjects started