Boostnote: React component tests

Created on 20 Mar 2018  路  6Comments  路  Source: BoostIO/Boostnote

Boostnote functionality grows incredibly fast. Core components became huge and bloated with logic. We should start components refactoring, but, frankly, I'm scared to do that without at least basic set of tests. Unfortunately, we don't have any.

I propose to use usual testing stack Enzyme+Mocha+Chai to test components. Then we can step by step add tests for components before refactoring. I can start this process in my #1557

@kazup01 @Rokt33r What do you think?

discussion

Most helpful comment

Let's try Jest, it's just a matter of choice. I can add it to the project today

All 6 comments

I prefer jest. How do you think Jest?

I prefer jest as well, easy to configure, mock and most impotantly snapshots 馃憤

Let's try Jest, it's just a matter of choice. I can add it to the project today

@nlopin I appreciate your contributions. I'll gladly wait for it. 馃挴 馃挴 馃挴

@nlopin @Rokt33r What is the current status on this? Are there any points that still need to be discussed about this?

I'll close this since we are actively using Jest.

For continued discussion on Jest and test coverage let's use #1826

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shunchuan picture shunchuan  路  3Comments

luong-komorebi picture luong-komorebi  路  3Comments

Ocanamat picture Ocanamat  路  3Comments

aurelkurtula picture aurelkurtula  路  3Comments

gavvvr picture gavvvr  路  3Comments