Skip to main content

Introducing Automatic Mode

· One min read
Hung Viet Nguyen
Thanh Son Nguyen

We are so happy to annouce that we are launching Jest Preview Automatic Mode. In this mode, you don't have to trigger the preview.debug() function by yourself. Jest Preview AUTOMATICALLY preview the UI of your app WHENEVER a Jest test fails.

Jest Preview Automatic Mode

We believe this is the game changer feature of Jest Preview, which boost the Front end productivity dramatically on writing new tests and debugging existing tests. You don't have to move the preview.debug() around by yourself anymore. All you need to do is just one line of code:

// setupTests.ts
jestPreviewConfigure({ autoPreview: true });

Automatic Mode is in experiment and currently is an opt-in option. We recommend you to start use it now. Automatic Mode expect to be the default mode in Jest Preview 0.3.x.

If you have any trouble with Automatic Mode, let us know at Jest Preview's GitHub issue

Did you use Jest Preview Automatic Mode yet? Let us know!