Summary: Adds a test runner for jest test and adds three simple test cases: - render the app - start a server - client connecting to the app Test can be run using `yarn test`. To make the test runner work, some changes needed to be made: - remove the export of `init()` from `'flipper'`, because it was a cyclic dependency - updating Button.js to the new ref-API Reviewed By: jknoxville Differential Revision: D10027078 fbshipit-source-id: 49107b0dd4dec666b92ecd841422fe7e6b3a7756
21 lines
623 B
JSON
21 lines
623 B
JSON
{
|
|
"name": "flipper-static",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@babel/core": "^7.1.0",
|
|
"@babel/generator": "^7.0.0",
|
|
"@babel/parser": "^7.1.0",
|
|
"@babel/plugin-proposal-class-properties": "^7.1.0",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
|
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
|
|
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
|
|
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
|
|
"@babel/preset-react": "^7.0.0",
|
|
"metro": "^0.45.3",
|
|
"recursive-readdir": "2.2.2"
|
|
},
|
|
"devDependencies": {}
|
|
}
|