tapioca icon indicating copy to clipboard operation
tapioca copied to clipboard

DSL test helpers should require all that is needed for running tests

Open vinistock opened this issue 3 years ago • 0 comments

When using our DSL compiler test helper by it self, executing the test fails because certain constants are not defined.

The following list of requires makes tests run properly, but might include extraneous requires or be missing other important ones. The immediate two issues that appeared were: the DSL compiler class not being defined and runtime not being defined.

require "tapioca/runtime/reflection"
require "tapioca/runtime/trackers"
require "tapioca/runtime/dynamic_mixin_compiler"
require "tapioca/runtime/loader"
require "tapioca/dsl/compiler"
require "tapioca/helpers/test/dsl_compiler"

vinistock avatar May 04 '22 15:05 vinistock