Last active
May 30, 2018 19:56
-
-
Save yozlet/09ceafd45a17c252916491f0d764b8c3 to your computer and use it in GitHub Desktop.
Jest --project bugs. Both commands specify a config file, but the second one also specifies project names. Note the missing `globalConfig.projects` object.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MacBook-Pro-2:peops yoz$ npx jest --config=jest-pytest.json --listTests --debug | |
| { | |
| "configs": [ | |
| { | |
| "automock": false, | |
| "browser": false, | |
| "cache": true, | |
| "cacheDirectory": "/var/folders/2d/nvqrl0yj67n7dztl2j609_v80000gn/T/jest_dx", | |
| "clearMocks": false, | |
| "coveragePathIgnorePatterns": [ | |
| "/node_modules/" | |
| ], | |
| "detectLeaks": false, | |
| "detectOpenHandles": false, | |
| "displayName": "ui", | |
| "errorOnDeprecated": false, | |
| "filter": null, | |
| "forceCoverageMatch": [], | |
| "globals": {}, | |
| "haste": { | |
| "providesModuleNodeModules": [] | |
| }, | |
| "moduleDirectories": [ | |
| "node_modules" | |
| ], | |
| "moduleFileExtensions": [ | |
| "js", | |
| "json", | |
| "jsx", | |
| "node" | |
| ], | |
| "moduleNameMapper": {}, | |
| "modulePathIgnorePatterns": [], | |
| "name": "f6b0ad2b373c6a9b4d317894bdc65d50", | |
| "resetMocks": false, | |
| "resetModules": false, | |
| "restoreMocks": false, | |
| "rootDir": "/Users/yoz/Work/peops", | |
| "roots": [ | |
| "/Users/yoz/Work/peops" | |
| ], | |
| "runner": "jest-runner", | |
| "setupFiles": [ | |
| "/Users/yoz/Work/peops/node_modules/regenerator-runtime/runtime.js" | |
| ], | |
| "skipFilter": false, | |
| "snapshotSerializers": [], | |
| "testEnvironment": "jest-environment-jsdom", | |
| "testEnvironmentOptions": {}, | |
| "testLocationInResults": false, | |
| "testMatch": [ | |
| "**/__tests__/**/*.js?(x)", | |
| "**/?(*.)+(spec|test).js?(x)" | |
| ], | |
| "testPathIgnorePatterns": [ | |
| "utils" | |
| ], | |
| "testRegex": "", | |
| "testRunner": "/Users/yoz/Work/peops/node_modules/jest-jasmine2/build/index.js", | |
| "testURL": "about:blank", | |
| "timers": "real", | |
| "transform": [ | |
| [ | |
| "^.+\\.jsx?$", | |
| "/Users/yoz/Work/peops/node_modules/jest-config/node_modules/babel-jest/build/index.js" | |
| ] | |
| ], | |
| "transformIgnorePatterns": [ | |
| "/node_modules/" | |
| ], | |
| "watchPathIgnorePatterns": [] | |
| }, | |
| { | |
| "automock": false, | |
| "browser": false, | |
| "cache": true, | |
| "cacheDirectory": "/var/folders/2d/nvqrl0yj67n7dztl2j609_v80000gn/T/jest_dx", | |
| "clearMocks": false, | |
| "coveragePathIgnorePatterns": [ | |
| "/node_modules/" | |
| ], | |
| "detectLeaks": false, | |
| "detectOpenHandles": false, | |
| "displayName": "pytest", | |
| "errorOnDeprecated": false, | |
| "filter": null, | |
| "forceCoverageMatch": [], | |
| "globals": {}, | |
| "haste": { | |
| "providesModuleNodeModules": [] | |
| }, | |
| "moduleDirectories": [ | |
| "node_modules" | |
| ], | |
| "moduleFileExtensions": [ | |
| "py" | |
| ], | |
| "moduleNameMapper": {}, | |
| "modulePathIgnorePatterns": [], | |
| "name": "f6b0ad2b373c6a9b4d317894bdc65d50", | |
| "resetMocks": false, | |
| "resetModules": false, | |
| "restoreMocks": false, | |
| "rootDir": "/Users/yoz/Work/peops", | |
| "roots": [ | |
| "/Users/yoz/Work/peops" | |
| ], | |
| "runner": "/Users/yoz/Work/peops/node_modules/jest-pytest/lib/index.js", | |
| "setupFiles": [ | |
| "/Users/yoz/Work/peops/node_modules/regenerator-runtime/runtime.js" | |
| ], | |
| "skipFilter": false, | |
| "snapshotSerializers": [], | |
| "testEnvironment": "jest-environment-jsdom", | |
| "testEnvironmentOptions": {}, | |
| "testLocationInResults": false, | |
| "testMatch": [ | |
| "**/?(*_)test?(s).py", | |
| "**/test_*.py" | |
| ], | |
| "testPathIgnorePatterns": [ | |
| "snap_.*\\.py" | |
| ], | |
| "testRegex": "", | |
| "testRunner": "/Users/yoz/Work/peops/node_modules/jest-jasmine2/build/index.js", | |
| "testURL": "about:blank", | |
| "timers": "real", | |
| "transform": [ | |
| [ | |
| "^.+\\.jsx?$", | |
| "/Users/yoz/Work/peops/node_modules/jest-config/node_modules/babel-jest/build/index.js" | |
| ] | |
| ], | |
| "transformIgnorePatterns": [ | |
| "/node_modules/" | |
| ], | |
| "watchPathIgnorePatterns": [] | |
| } | |
| ], | |
| "globalConfig": { | |
| "bail": false, | |
| "changedFilesWithAncestor": false, | |
| "coverageDirectory": "/Users/yoz/Work/peops/coverage", | |
| "coverageReporters": [ | |
| "json", | |
| "text", | |
| "lcov", | |
| "clover" | |
| ], | |
| "detectLeaks": false, | |
| "detectOpenHandles": false, | |
| "errorOnDeprecated": false, | |
| "expand": false, | |
| "filter": null, | |
| "globalSetup": null, | |
| "globalTeardown": null, | |
| "listTests": true, | |
| "maxWorkers": 3, | |
| "noStackTrace": false, | |
| "nonFlagArgs": [], | |
| "notify": false, | |
| "notifyMode": "always", | |
| "passWithNoTests": false, | |
| "projects": [ | |
| { | |
| "displayName": "ui", | |
| "testPathIgnorePatterns": [ | |
| "utils" | |
| ], | |
| "rootDir": "/Users/yoz/Work/peops" | |
| }, | |
| { | |
| "displayName": "pytest", | |
| "moduleFileExtensions": [ | |
| "py" | |
| ], | |
| "rootDir": "/Users/yoz/Work/peops", | |
| "runner": "jest-pytest", | |
| "testPathIgnorePatterns": [ | |
| "snap_.*\\.py" | |
| ], | |
| "testMatch": [ | |
| "**/?(*_)test?(s).py", | |
| "**/test_*.py" | |
| ] | |
| } | |
| ], | |
| "rootDir": "/Users/yoz/Work/peops", | |
| "runTestsByPath": false, | |
| "skipFilter": false, | |
| "testFailureExitCode": 1, | |
| "testPathPattern": "", | |
| "testResultsProcessor": null, | |
| "updateSnapshot": "new", | |
| "useStderr": false, | |
| "verbose": null, | |
| "watch": false, | |
| "watchman": true | |
| }, | |
| "version": "23.1.0" | |
| } | |
| /Users/yoz/Work/peops/comp/tests.py | |
| /Users/yoz/Work/peops/dash/tests.py | |
| /Users/yoz/Work/peops/core/tests.py | |
| /Users/yoz/Work/peops/data/importing_tests.py | |
| /Users/yoz/Work/peops/ui/utilities/__tests__/vesting.test.js | |
| /Users/yoz/Work/peops/comp/model_tests.py | |
| /Users/yoz/Work/peops/comp/integration_tests.py | |
| /Users/yoz/Work/peops/data/tests.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MacBook-Pro-2:peops yoz$ npx jest --config=jest-pytest.json --projects pytest --listTests --debug | |
| { | |
| "configs": [ | |
| { | |
| "automock": false, | |
| "browser": false, | |
| "cache": true, | |
| "cacheDirectory": "/var/folders/2d/nvqrl0yj67n7dztl2j609_v80000gn/T/jest_dx", | |
| "clearMocks": false, | |
| "coveragePathIgnorePatterns": [ | |
| "/node_modules/" | |
| ], | |
| "detectLeaks": false, | |
| "detectOpenHandles": false, | |
| "errorOnDeprecated": false, | |
| "filter": null, | |
| "forceCoverageMatch": [], | |
| "globals": {}, | |
| "haste": { | |
| "providesModuleNodeModules": [] | |
| }, | |
| "moduleDirectories": [ | |
| "node_modules" | |
| ], | |
| "moduleFileExtensions": [ | |
| "js", | |
| "json", | |
| "jsx", | |
| "node" | |
| ], | |
| "moduleNameMapper": {}, | |
| "modulePathIgnorePatterns": [], | |
| "name": "f6b0ad2b373c6a9b4d317894bdc65d50", | |
| "resetMocks": false, | |
| "resetModules": false, | |
| "restoreMocks": false, | |
| "rootDir": "/Users/yoz/Work/peops", | |
| "roots": [ | |
| "/Users/yoz/Work/peops" | |
| ], | |
| "runner": "jest-runner", | |
| "setupFiles": [ | |
| "/Users/yoz/Work/peops/node_modules/regenerator-runtime/runtime.js" | |
| ], | |
| "skipFilter": false, | |
| "snapshotSerializers": [], | |
| "testEnvironment": "jest-environment-jsdom", | |
| "testEnvironmentOptions": {}, | |
| "testLocationInResults": false, | |
| "testMatch": [ | |
| "**/__tests__/**/*.js?(x)", | |
| "**/?(*.)+(spec|test).js?(x)" | |
| ], | |
| "testPathIgnorePatterns": [ | |
| "/node_modules/" | |
| ], | |
| "testRegex": "", | |
| "testRunner": "/Users/yoz/Work/peops/node_modules/jest-jasmine2/build/index.js", | |
| "testURL": "about:blank", | |
| "timers": "real", | |
| "transform": [ | |
| [ | |
| "^.+\\.jsx?$", | |
| "/Users/yoz/Work/peops/node_modules/jest-config/node_modules/babel-jest/build/index.js" | |
| ] | |
| ], | |
| "transformIgnorePatterns": [ | |
| "/node_modules/" | |
| ], | |
| "watchPathIgnorePatterns": [] | |
| } | |
| ], | |
| "globalConfig": { | |
| "bail": false, | |
| "changedFilesWithAncestor": false, | |
| "coverageDirectory": "/Users/yoz/Work/peops/coverage", | |
| "coverageReporters": [ | |
| "json", | |
| "text", | |
| "lcov", | |
| "clover" | |
| ], | |
| "detectLeaks": false, | |
| "detectOpenHandles": false, | |
| "errorOnDeprecated": false, | |
| "expand": false, | |
| "filter": null, | |
| "globalSetup": null, | |
| "globalTeardown": null, | |
| "listTests": true, | |
| "maxWorkers": 3, | |
| "noStackTrace": false, | |
| "nonFlagArgs": [], | |
| "notify": false, | |
| "notifyMode": "always", | |
| "passWithNoTests": false, | |
| "projects": [ | |
| "pytest" | |
| ], | |
| "rootDir": "/Users/yoz/Work/peops", | |
| "runTestsByPath": false, | |
| "skipFilter": false, | |
| "testFailureExitCode": 1, | |
| "testPathPattern": "", | |
| "testResultsProcessor": null, | |
| "updateSnapshot": "new", | |
| "useStderr": false, | |
| "verbose": null, | |
| "watch": false, | |
| "watchman": true | |
| }, | |
| "version": "23.1.0" | |
| } | |
| /Users/yoz/Work/peops/ui/utilities/__tests__/vesting.test.js | |
| /Users/yoz/Work/peops/ui/utilities/__tests__/utils.test.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment