You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If any error appears during the process of generating a project, the associated test should fail.
Current Behavior
Despite the above errors, when running this test individually, the associated test passes.
Possible Solution
GlueGun's system tool offers spawn() and run() commands which both return the result of running a command (either as a string or an object). Perhaps it possible to use the second parameter options passed to these commands in an effort to log this information or throw [during project generation](url such that the test will fail?
Steps to Reproduce
Run npx create-expo-stack@latest myTestProject --expo-router --drawer --nativewind --yarn
Observe the errors seen in the above screenshot
Using your local version of create expo stack, run the following test, particularly the one for the above command. Notice that I have added the line not.toContain('error ') in an effort to catch that line.
// --expo-router drawer nativewind and yarn
test(`generates a project with expo-router drawer and nativewind with yarn`, async () => {
const output = await cli(`myTestProject --expo-router --drawer --nativewind --yarn`);
console.log('output: ', output)
expect(output).toContain('yarn');
expect(output).not.toContain('error ');
});
The test will pass, which is incorrect. Upon inspecting the output string, you will see that the results of the formatting command run here are not included, despite the fact that they are shown in the cli output to the user.
Expected Behavior
If any error appears during the process of generating a project, the associated test should fail.
Current Behavior
Despite the above errors, when running this test individually, the associated test passes.
Possible Solution
GlueGun's
system
tool offersspawn()
andrun()
commands which both return the result of running a command (either as a string or an object). Perhaps it possible to use the second parameteroptions
passed to these commands in an effort to log this information or throw [during project generation](url such that the test will fail?Steps to Reproduce
npx create-expo-stack@latest myTestProject --expo-router --drawer --nativewind --yarn
not.toContain('error ')
in an effort to catch that line.output
string, you will see that the results of the formatting command run here are not included, despite the fact that they are shown in the cli output to the user.Relevant Docs
The text was updated successfully, but these errors were encountered: