Skip to content

Commit c97240a

Browse files
committed
Disbled console output in tests (#241)
1 parent 29748af commit c97240a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ tsconfig.tsbuildinfo
1313
.tox/
1414

1515
.eslintcache
16+
.jest-cache
1617
.stylelintcache
1718

1819
# Ignore the test reports

plugins/ui/src/js/src/DocumentHandler.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,17 @@ beforeEach(() => {
5555
});
5656

5757
it('should throw an error if no children to render', () => {
58+
TestUtils.disableConsoleOutput();
59+
5860
const children = makeDocument();
5961
expect(() => render(makeDocumentHandler({ children }))).toThrow(
6062
NoChildrenError
6163
);
6264
});
6365

6466
it('should throw an error if the document mixes panel and non-panel elements', () => {
67+
TestUtils.disableConsoleOutput();
68+
6569
const children = makeDocument([
6670
makeElement(PANEL_ELEMENT_NAME),
6771
makeElement('not panel element'),

0 commit comments

Comments
 (0)