This file contains hidden or 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
#!/usr/bin/env bash | |
mocha \ | |
--compilers js:./test/setup.js \ | |
--recursive \ | |
'./test/**/*Test.js' |
This file contains hidden or 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
const hook = require('css-modules-require-hook'); | |
const sass = require('node-sass'); | |
hook({ | |
extensions: ['.scss'], | |
preprocessCss(css, filepath) { | |
const result = sass.renderSync({ | |
data: css, | |
includePaths: [path.resolve(filepath, '..')] | |
}); |
This file contains hidden or 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
find . -name "*Test.js" -exec rename 's/Test.js$/.test.js/' '{}' \; |
This file contains hidden or 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
mocha \ | |
--compilers js:node_modules/babel-register,js:./test/setup.js \ | |
--recursive \ | |
--colors \ | |
--timeout 10000 \ | |
--grep "$1" \ | |
'./test/**/*Test.js' |
This file contains hidden or 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
render(( | |
<BrowserRouter> | |
<App gists={window.__gists__} /> | |
</BrowserRouter> | |
), document.getElementById('app')); |
This file contains hidden or 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
export default ({ gists }) => ( | |
<div> | |
<Sidebar> | |
{ | |
gists ? gists.map(gist => ( | |
<SidebarItem key={gist.id}> | |
<Link to={`/g/${gist.id}`}> | |
{gist.description || '[no description]'} | |
</Link> | |
</SidebarItem> |
This file contains hidden or 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
const routes = [ | |
'/', | |
'/g/:gistId' | |
]; | |
app.get('*', (req, res) => { | |
const match = routes.reduce((acc, route) => matchPath(req.url, route, { exact: true }) || acc, null); | |
if (!match) { | |
res.status(404).send(render(<NoMatch />)); | |
return; |
This file contains hidden or 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
/** | |
* enzymeSimulateTest.js | |
* | |
* @author <a href="mailto:[email protected]">Patrick Hund</a> | |
* @since 29 Apr 2016 | |
*/ | |
import React, { Component } from "react"; | |
import { mount } from "enzyme"; | |
import { expect } from "chai"; |
This file contains hidden or 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
[8883:1221/181921:FATAL:url_request_context.cc(107)] Check failed: false. Leaked 1 URLRequest(s). First URL: http://10.44.74.1/testproxy/integra214.pac. | |
0 Electron Framework 0x0000000102539053 _ZN4base8internal30DstRangeRelationToSrcRangeImplIilLNS0_21IntegerRepresentationE1ELS2_1ELNS0_26NumericRangeRepresentationE0EE5CheckEl + 391907 | |
1 Electron Framework 0x000000010254ef9a _ZN4base8internal30DstRangeRelationToSrcRangeImplIilLNS0_21IntegerRepresentationE1ELS2_1ELNS0_26NumericRangeRepresentationE0EE5CheckEl + 481834 | |
2 Electron Framework 0x0000000103c32d7d _CTFontManagerUnregisterFontForData + 13223693 | |
3 Electron Framework 0x0000000103c32b49 _CTFontManagerUnregisterFontForData + 13223129 | |
4 Electron Framework 0x0000000103c32dce _CTFontManagerUnregisterFontForData + 13223774 | |
5 Electron Framework 0x000000010242a382 _ZNK4base14DefaultDeleterIN3net17URLRequestContextEEclEPS2_ + 18 | |
6 Electron Framework |
This file contains hidden or 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
/** | |
* start.js | |
* | |
* A Gulp task that starts the local development server and the watchers. | |
* | |
* @author <a href="mailto:[email protected]">Patrick Hund</a> | |
* @since 22 Jun 2015 | |
*/ | |
import gutil from "gulp-util"; | |
import path from "path"; |