@zoroaster/fork
Version:
Test forks.
27 lines • 1.24 kB
text/xml
<types namespace="_contextTesting">
<type name="RunFork" desc="Options for the run method.">
<prop type="(string|!_contextTesting.ForkConfig)" name="forkConfig">
Either the config, or the path to the module to fork.
</prop>
<prop string name="input">
The input to the test from the mask's result. It will be converted into an array of strings to become arguments to pass to the fork.
</prop>
<prop opt name="props">
The properties to pass to the `getArgs` and `getOptions` as their this context. These properties will be got from the mask's result.
</prop>
<prop opt type="!Array<_contextTesting.Context>" name="contexts">
The contexts for the test to be passed to `getArgs` and `getOptions`.
</prop>
</type>
<type name="ForkResult" desc="The output of the fork method.">
<prop type="string" name="stdout">
The output from the `stdout` stream, possibly with answers fed to `stdin`.
</prop>
<prop type="string" name="stderr">
The output from the `stderr` stream, possibly with answers fed to `stdin`.
</prop>
<prop type="number" name="code">
The code with which the process exited.
</prop>
</type>
</types>