Skip to content

Commit

Permalink
Relay: Test babel-relay-plugin with Jest
Browse files Browse the repository at this point in the history
Summary: Configures the Babel Relay Plugin to use Jest for testing.

Closes #423

Reviewed By: @kassens

Differential Revision: D2507183

fb-gh-sync-id: 1d4b3bececb3f02c9c3283b2020f06bf6a95f451
  • Loading branch information
yungsters authored and facebook-github-bot-2 committed Oct 6, 2015
1 parent 1e0eb52 commit 6f261a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
15 changes: 13 additions & 2 deletions scripts/babel-relay-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "rm -rf lib; babel src --out-dir lib --ignore __tests__",
"prepublish": "npm run build",
"test": "./testjs",
"test": "jest",
"update-schema": "babel-node ./src/tools/generateSchemaJson.js",
"update-fixtures": "babel-node ./src/tools/regenerateFixtures.js"
},
Expand All @@ -20,11 +20,22 @@
],
"devDependencies": {
"babel": "^5.8.23",
"jasmine-node": "1.14.5",
"babel-jest": "^5.3.0",
"jest-cli": "^0.5.8",
"minimist": "^1.1.3"
},
"dependencies": {
"babel-core": "^5.8.25",
"graphql": "0.4.2"
},
"jest": {
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
"persistModuleRegistryBetweenSpecs": true,
"preprocessorIgnorePatterns": [
"<rootDir>/node_modules/"
],
"unmockedModulePathPatterns": [
"<rootDir>/"
]
}
}
16 changes: 0 additions & 16 deletions scripts/babel-relay-plugin/testjs

This file was deleted.

0 comments on commit 6f261a4

Please sign in to comment.