Skip to content

Instantly share code, notes, and snippets.

View kenwheeler's full-sized avatar
🌭
PRs Welcome

Ken Wheeler kenwheeler

🌭
PRs Welcome
View GitHub Profile
@kenwheeler
kenwheeler / gist:7b856ddf18c3f1af94ce
Last active August 29, 2015 14:20
webpack config
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
import React from "react";
const RN = React;
export const PropTypes = React.PropTypes;
RN.StyleSheet = {
create: (style) => style
};
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');
}
--compilers js:test/compile.js
--require test/setup.js
"use strict";
var chai = require("chai");
global.expect = chai.expect;
import React from "react-native";
const {
View,
Text
} = React;
class OurComponent extends React.Component {
render() {
<View>
import React from "react";
import { shallow } from "enzyme";
import OurComponent from "../our-component";
describe("<OurComponent/>", () => {
// insert assertions here
});
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" },
@kenwheeler
kenwheeler / esnextbin.md
Created February 10, 2016 00:35
esnextbin sketch
@kenwheeler
kenwheeler / esnextbin.md
Created February 12, 2016 14:30
esnextbin sketch