Shopify / slate

Slate is a toolkit for developing Shopify themes. It's designed to assist your workflow and speed up the process of developing, testing, and deploying themes.
https://shopify.github.io/slate
MIT License
1.28k stars 363 forks source link

How to disable clearConsole() #1090

Open LuisAlejandro opened 4 years ago

LuisAlejandro commented 4 years ago

This repo is currently on low maintenance. See README for details

Problem

I want to disable the calls to clearConsole();

Replication steps

export NODE_ENV=test && slate-tools watch

More Information

According to https://github.com/Shopify/slate/blob/f273114e13b066e8aeeb7d2662d648d600e1bba8/packages/slate-tools/cli/commands/start.js#L80

I can turn off the clearing of the console if i set NODE_ENV to "test" but it keeps clearing the console.

I need to disable this behavior because there are some bugs on the terminal that I need to see.

LuisAlejandro commented 4 years ago

I managed to avoid calls to clearConsole() by putting process.env.NODE_ENV = 'test'; on my slate.config.js