Skip to content

Commit

Permalink
chore: remove --silent flag (atomiks#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
KubaJastrz authored and atomiks committed Oct 25, 2019
1 parent bb2c731 commit dbb5f2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dev:addons": "parcel demo/addons/index.html -d .devserver",
"dev:plugins": "parcel demo/plugins/index.html -d .devserver",
"build": "node rollup.pre-build && rollup --config && bundlesize",
"test": "jest --coverage --silent",
"test": "jest --coverage",
"check-types": "tsc",
"lint": "eslint --report-unused-disable-directives . --ext .ts,.js",
"format": "prettier --write \"**/*.{js,ts,json,md,mdx,scss,css}\"",
Expand All @@ -55,7 +55,7 @@
"globals": {
"__DEV__": true
},
"setupFiles": [
"setupFilesAfterEnv": [
"./test/setup.js"
],
"testRegex": "./test/.*.test.js$"
Expand Down
2 changes: 0 additions & 2 deletions test/integration/createTippy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ describe('instance.destroy()', () => {
jest.advanceTimersByTime(500);

expect(spy).not.toHaveBeenCalled();

spy.mockRestore();
});
});

Expand Down
10 changes: 10 additions & 0 deletions test/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ global.requestAnimationFrame = cb => cb();

// Only relevant for bindGlobalEventListeners.test.js
Object.defineProperty(window.navigator, 'platform', {value: 'iPhone'});

// Prevents console from spamming test output while still allowing for debugging
// while writing tests
const nativeConsoleWarn = global.console.warn;
beforeEach(() => {
global.console.warn = jest.fn();
});
afterEach(() => {
global.console.warn = nativeConsoleWarn;
});

0 comments on commit dbb5f2b

Please sign in to comment.