Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Fix Jest in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Apr 13, 2018
1 parent 56d59f3 commit d546025
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
7 changes: 7 additions & 0 deletions cli/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
rootDir: '.',
testPathIgnorePatterns: ['node_modules', '<rootDir>/dist'],
transform: {
'^.+\\.jsx?$': 'babel-jest',
},
};
1 change: 1 addition & 0 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@babel/plugin-transform-runtime": "^7.0.0-beta.42",
"@babel/preset-env": "^7.0.0-beta.42",
"@babel/register": "^7.0.0-beta.42",
"babel-core": "^7.0.0-0",
"babel-jest": "^22.1.0",
"dotenv-extended": "^2.0.1",
"jest": "^22.1.1",
Expand Down
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module.exports = {
projects: [
// Projects having their own config
"cli",
"node-packages/commons",
"services/webhook-handler",
// Everything else (specified in object notation to avoid Jest duplicate config error)
{
testMatch: [
"<rootDir>/!(node-packages/commons/|services/webhook-handler/){**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}"
"<rootDir>/!(cli|node-packages/commons/|services/webhook-handler/){**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}"
],
testPathIgnorePatterns: ["node_modules", "flow-typed"]
}
Expand Down
14 changes: 4 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,10 @@ babel-core@^6.0.0, babel-core@^6.26.0:
slash "^1.0.0"
source-map "^0.5.6"

babel-core@^7.0.0-0:
version "7.0.0-bridge.0"
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece"

babel-eslint@^8.2.1:
version "8.2.2"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.2.tgz#1102273354c6f0b29b4ea28a65f97d122296b68b"
Expand Down Expand Up @@ -1162,16 +1166,6 @@ [email protected], babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime
core-js "^2.4.0"
regenerator-runtime "^0.11.0"

[email protected]:
version "7.0.0-beta.3"
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-7.0.0-beta.3.tgz#ebb877b6070ce9912b0d0c22fcad3372165913a8"
dependencies:
babel-code-frame "7.0.0-beta.3"
babel-traverse "7.0.0-beta.3"
babel-types "7.0.0-beta.3"
babylon "7.0.0-beta.27"
lodash "^4.2.0"

babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02"
Expand Down

0 comments on commit d546025

Please sign in to comment.