Skip to content

Commit

Permalink
Moving to ts-loader, throwing on console.warn in ssr tests (microsoft…
Browse files Browse the repository at this point in the history
…#4370)

* Break on warnings.

* Shrinkwrap update.
  • Loading branch information
dzearing authored and Chris Mohr committed Apr 17, 2018
1 parent 83ac0a9 commit f02cc55
Show file tree
Hide file tree
Showing 3 changed files with 2,529 additions and 1,169 deletions.
6 changes: 6 additions & 0 deletions apps/ssr-tests/test/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
'use strict';


import { initializeIcons } from 'office-ui-fabric-react/lib/Icons';

// Treat warnings as failures.
console.warn = (message) => { throw new Error(message); };

// Initialize icons.
initializeIcons('dist/');

// Configure load-themed-styles to avoid registering styles.
Expand Down
Loading

0 comments on commit f02cc55

Please sign in to comment.