-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Make tests pass using Node 5 / NPM 3 #832 #840
Changes from 9 commits
471e489
6f19ad7
139e7d3
7dc2ada
b7e5fea
9050c55
8735f6d
1629a6f
b65ce82
703aaa9
2ad94ed
e5e762a
d94114d
ff4d438
306d569
2eff6a0
441a8d7
9d1ce5c
e6ca07a
a918aa1
2380ea1
ceffba9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
language: node_js | ||
node_js: | ||
- '4' | ||
- '5' | ||
env: | ||
- TEST_DIR=. | ||
- TEST_DIR=scripts/babel-relay-plugin | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,8 @@ | |
"dependencies": { | ||
"babel-runtime": "5.8.24", | ||
"fbjs": "^0.7.0", | ||
"react-static-container": "^1.0.0-alpha.1" | ||
"react-static-container": "^1.0.0-alpha.1", | ||
"babel-relay-plugin": "0.7.1" | ||
}, | ||
"peerDependencies": { | ||
"babel-relay-plugin": "0.7.1", | ||
|
@@ -92,7 +93,8 @@ | |
"<rootDir>/node_modules/fbjs/lib/(?!(ErrorUtils.js$|fetch.js$|fetchWithRetries.js$))", | ||
"<rootDir>/node_modules/react/", | ||
"<rootDir>/node_modules/react-dom/", | ||
"<rootDir>/node_modules/react-static-container/" | ||
"<rootDir>/node_modules/react-static-container/", | ||
"<rootDir>/node_modules/(?!(fbjs/lib/ErrorUtils.js$|fbjs/lib/fetch.js$|fbjs/lib/fetchWithRetries.js$))" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you keep the deleted lines here and just have 2 patterns and add Is there something that makes it difficult to keep the npm 2 patterns in this file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only difficulty is I don't know how to. Let me see what I can do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you should be able to revert this change once I update to jest 0.9.0-fb3. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok sure! I'll be awaiting jests 0.9.0-fb3 release |
||
] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
[include] | ||
../node_modules/ | ||
../../../node_modules/util/ | ||
|
||
[libs] | ||
../interfaces | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the idea is that people would need to add
babel-relay-plugin
to their project with npm 3, so it should remain (just) a peer dependency. I'd love someone with more npm knowledge here..cc @steveluscher
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit: If the plugin isn't under dependencies, you have to manually install it with npm 3.
Which means
npm test
will fail in travis-ci since the plugin wasn't installed. You can see the failing tests above for one of my commits: https://travis-ci.org/facebook/relay/builds/109438390There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just guessing here, but should it maybe be in devDependencies in that case? It's needed to run the unit tests, but if you're using it in your own project, you should add it to your dependencies (to use it in your transform step).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, let me try it out
On Fri, Feb 19, 2016 at 6:28 PM Jan Kassens notifications@github.com
wrote: