Simplifies the test code for checking the imports that dynamically linked modules have. At the moment, we always import canonical_abi_realloc, memory, eval_bytecode, and invoke, so we don't need separate tests for dynamically linked modules that have named exports.
Why am I making this change?
I'm going to need to adjust how we check the imports to exclude eval_bytecode and reduce the number of expected imports for certain dynamically linked modules in an upcoming PR and wanted to refactor the test suite outside of that PR first.
Checklist
[x] I've updated the relevant CHANGELOG files if necessary. Changes to javy-cli and javy-plugin do not require updating CHANGELOG files.
Description of the change
Simplifies the test code for checking the imports that dynamically linked modules have. At the moment, we always import
canonical_abi_realloc
,memory
,eval_bytecode
, andinvoke
, so we don't need separate tests for dynamically linked modules that have named exports.Why am I making this change?
I'm going to need to adjust how we check the imports to exclude
eval_bytecode
and reduce the number of expected imports for certain dynamically linked modules in an upcoming PR and wanted to refactor the test suite outside of that PR first.Checklist
javy-cli
andjavy-plugin
do not require updating CHANGELOG files.