Skip to content

Commit

Permalink
Bump jest
Browse files Browse the repository at this point in the history
  • Loading branch information
guigrpa committed Nov 9, 2016
1 parent 2b7ff35 commit 1418249
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 145 deletions.
33 changes: 23 additions & 10 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ const specs = {
'babel-eslint': '7.0.0',

// Testing with Jest
'jest': '16.1.0-alpha.691b0e22',
'jest': '17.0.0',
'jest-html': '^1.2.0',
'react-test-renderer': '15.3.2',
'babel-jest': '16.0.0',
'babel-jest': '17.0.0',

// Testing with Mocha
'mocha': '2.4.5',
Expand Down Expand Up @@ -296,6 +296,7 @@ const specs = {
exclude: [
'lib/vendor/**',
'node_modules/**/*',
'test/**',
],
},
jest: {
Expand All @@ -310,22 +311,34 @@ const specs = {
coverageDirectory: '.nyc_output',
coverageReporters: ['json', 'text', 'html'],
snapshotSerializers: ['<rootDir>/node_modules/jest-html'],
// collectCoverageFrom: [
// 'lib/**/*.js',
// '!**/node_modules/**',
// '!**/__tests__/**',
// '!**/__mocks__/**',
// ],
collectCoverageFrom: [
'lib/**/*.js',
'!lib/cli.js',
'!lib/noPlugins.js',
'!lib/stdinLogger.js',
'!lib/withConsoleListener.js',
'!lib/chromeExtension/*.js', // at the base of the extension folder
'!lib/chromeExtension/store/**',
'!lib/example/**',
'!lib/serverLogsApp/**',
'!lib/vendor/**',
'!test/**',
'!testJest/**',
'!**/webpack*',
'!**/node_modules/**',
'!**/__tests__/**',
'!**/__mocks__/**',
],
// setupTestFrameworkScriptFile: './testJest/setup.js',
},
};

// ===============================================
// Build package.json
// ===============================================
const sortDeps = deps => {
const sortDeps = (deps) => {
const newDeps = {};
Object.keys(deps).sort().forEach(key => {
Object.keys(deps).sort().forEach((key) => {
newDeps[key] = deps[key];
});
return newDeps;
Expand Down
25 changes: 22 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"babel-cli": "6.16.0",
"babel-core": "6.17.0",
"babel-eslint": "7.0.0",
"babel-jest": "16.0.0",
"babel-jest": "17.0.0",
"babel-loader": "6.2.5",
"babel-polyfill": "6.16.0",
"babel-preset-es2015": "6.16.0",
Expand All @@ -101,7 +101,7 @@
"giu": "0.8.1",
"ignore-styles": "4.0.0",
"isomorphic-fetch": "2.2.1",
"jest": "16.1.0-alpha.691b0e22",
"jest": "17.0.0",
"jest-html": "^1.2.0",
"json-loader": "0.5.4",
"mocha": "2.4.5",
Expand All @@ -128,7 +128,8 @@
"nyc": {
"exclude": [
"lib/vendor/**",
"node_modules/**/*"
"node_modules/**/*",
"test/**"
]
},
"jest": {
Expand All @@ -146,6 +147,24 @@
],
"snapshotSerializers": [
"<rootDir>/node_modules/jest-html"
],
"collectCoverageFrom": [
"lib/**/*.js",
"!lib/cli.js",
"!lib/noPlugins.js",
"!lib/stdinLogger.js",
"!lib/withConsoleListener.js",
"!lib/chromeExtension/*.js",
"!lib/chromeExtension/store/**",
"!lib/example/**",
"!lib/serverLogsApp/**",
"!lib/vendor/**",
"!test/**",
"!testJest/**",
"!**/webpack*",
"!**/node_modules/**",
"!**/__tests__/**",
"!**/__mocks__/**"
]
}
}
Loading

0 comments on commit 1418249

Please sign in to comment.