Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement jest-haste-map instead of node-haste #896

Closed
wants to merge 10 commits into from
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"arrow-spacing": [2],
"babel/arrow-parens": [2, "as-needed"],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"camelcase": [2, {"properties": "always"}],
"comma-dangle": [2, "always-multiline"],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this recently but it is really silly, especially when working with data from an API I don't control. Let's remove it and be less strict, yay!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that situation. I used to disable it where necessary. There’s also the possibility to disable it for property names.

"comma-spacing": [2],
"comma-style": [2, "last"],
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"istanbul": "^0.4.2",
"jest-environment-jsdom": "^11.0.2",
"jest-environment-node": "^11.0.2",
"jest-haste-map": "^11.0.2",
"jest-jasmine1": "^11.0.2",
"jest-jasmine2": "^11.0.2",
"jest-mock": "^11.0.2",
"jest-util": "^11.0.2",
"json-stable-stringify": "^1.0.0",
"lodash.template": "^4.2.4",
"mkdirp": "^0.5.1",
"node-haste": "^2.5.0",
"optimist": "^0.6.1",
"resolve": "^1.1.6",
"sane": "^1.2.0",
Expand All @@ -44,11 +44,19 @@
"url": "https://github.com/facebook/jest"
},
"scripts": {
"jasmine1": "node bin/jest.js --testRunner=jasmine1",
"jest-cache": "node bin/jest.js",
"jest-heap-usage": "node bin/jest.js --runInBand --logHeapUsage",
"jest-in-band": "node bin/jest.js --runInBand",
"jest-jasmine1": "node bin/jest.js --testRunner=jasmine1",
"jest-json": "node bin/jest.js --json",
"jest-no-cache": "node bin/jest.js --no-cache",
"jest-node-cache": "node bin/jest.js --no-watchman",
"jest-node-no-cache": "node bin/jest.js --no-watchman --no-cache",
"jest-verbose": "node bin/jest.js --verbose",
"lint": "eslint .",
"postinstall": "node postinstall.js",
"prepublish": "npm test",
"test": "npm run lint && node bin/jest.js && npm run jasmine1 && npm link --ignore-scripts && node ./run_tests.js"
"test": "npm run lint && npm run jest-no-cache && npm run jest-cache && npm run jest-node-no-cache && npm run jest-node-cache && npm run jest-jasmine1 && npm run jest-in-band && npm run jest-heap-usage && npm run jest-json && npm run jest-verbose && npm link --ignore-scripts && node ./run_tests.js"
},
"jest": {
"rootDir": "src",
Expand Down
2 changes: 2 additions & 0 deletions packages/jest-environment-jsdom/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__mocks__/
__tests__/
2 changes: 2 additions & 0 deletions packages/jest-environment-node/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__mocks__/
__tests__/
2 changes: 2 additions & 0 deletions packages/jest-haste-map/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__mocks__/
__tests__/
25 changes: 25 additions & 0 deletions packages/jest-haste-map/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "jest-haste-map",
"version": "11.0.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git"
},
"license": "BSD-3-Clause",
"main": "src/index.js",
"dependencies": {
"denodeify": "^1.2.1",
"fb-watchman": "^1.9.0",
"graceful-fs": "^4.1.3"
},
"jest": {
"testEnvironment": "node",
"unmockedModulePathPatterns": [
"denodeify"
]
},
"scripts": {
"prepublish": "npm test",
"test": "node -e \"const spawn = require('child_process').spawn, path=require('path'); spawn('node', [path.resolve('../../bin/jest.js')], {stdio:'inherit'})\""
}
}
Loading