made with esnextbin
This file contains 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
WARNING in ./~/babel/~/babel-core/lib/babel/util.js | |
Critical dependencies: | |
78:11-31 the request of a dependency is an expression | |
@ ./~/babel/~/babel-core/lib/babel/util.js 78:11-31 | |
WARNING in ./~/babel/~/babel-core/lib/babel/transformation/file/index.js | |
Critical dependencies: | |
232:33-45 the request of a dependency is an expression | |
264:19-31 the request of a dependency is an expression | |
@ ./~/babel/~/babel-core/lib/babel/transformation/file/index.js 232:33-45 264:19-31 |
This file contains 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
import React from "react"; | |
const RN = React; | |
export const PropTypes = React.PropTypes; | |
RN.StyleSheet = { | |
create: (style) => style | |
}; |
This file contains 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
var fs = require('fs'); | |
var path = require('path'); | |
var babel = require('babel-core'); | |
var origJs = require.extensions['.js']; | |
require.extensions['.js'] = function (module, fileName) { | |
var output; | |
if (fileName.indexOf('node_modules/react-native/Libraries/react-native/react-native.js') >= 0) { | |
fileName = path.resolve('./test/mocks/react-native.js'); | |
} |
This file contains 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
--compilers js:test/compile.js | |
--require test/setup.js |
This file contains 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
"use strict"; | |
var chai = require("chai"); | |
global.expect = chai.expect; |
This file contains 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
import React from "react-native"; | |
const { | |
View, | |
Text | |
} = React; | |
class OurComponent extends React.Component { | |
render() { | |
<View> |
This file contains 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
import React from "react"; | |
import { shallow } from "enzyme"; | |
import OurComponent from "../our-component"; | |
describe("<OurComponent/>", () => { | |
// insert assertions here | |
}); |
This file contains 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
import React from "react"; | |
import { shallow } from "enzyme"; | |
import OurComponent from "../our-component"; | |
describe("<OurComponent/>", () => { | |
it("should render children when supplied the items prop", () => { | |
let mockData = [ | |
{ name: "test" }, |
made with esnextbin