Skip to content

Commit ffcf9b9

Browse files
committed
added note about setState/mounting issue in CommitBox.spec.tsx
1 parent 9892f4b commit ffcf9b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test-components/CommitBox.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe('CommitBox', () => {
4646
hasFiles: true,
4747
settings: { composite: {} } as any
4848
});
49+
// can't use setState here, since the box hasn't actually mounted
4950
box.state = { value: 'message' };
5051

5152
let actual = box.commitButtonStyle(true);

0 commit comments

Comments
 (0)