Only run tests against files which have been changed (--passWithNoTests
used in case no tested files have changed)
jest --onlyChanged --passWithNoTests
Only run tests against files which have been changed (--passWithNoTests
used in case no tested files have changed)
jest --onlyChanged --passWithNoTests
// cypress/support/hooks.js | |
// Cypress does not support listening to the fetch method | |
// Therefore, as a workaround we polyfill `fetch` with traditional XHR which | |
// are supported. See: https://github.com/cypress-io/cypress/issues/687 | |
enableFetchWorkaround() | |
// private helpers | |
function enableFetchWorkaround() { | |
let polyfill |
Get-ChildItem -Path "." -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force |
function makeIndex() { | |
return Math.random().toString(12).substring(2, 12); | |
} | |
function Awesome() { | |
Object.defineProperty(this, 'index', { | |
writable: false, | |
configurable: false, | |
value: makeIndex() | |
}); |
/// Function to get next map item | |
/// returns next map item or fallback value if map, key or next item does not exist | |
/// Github Repo: https://github.com/elcheio/sass-map-get-next-prev | |
/// Node Module: https://www.npmjs.com/package/sass-map-get-next-prev | |
/// | |
/// @author Simon Koch <agorilla@me.com> | |
/// | |
/// Licensed under the MIT license. | |
/// | |
/// @access public |
/* | |
* Generate a SVG-sprite mixin for Sass | |
* ==================================== | |
* | |
* Gaya Kessler - http://gaya.ninja - http://twitter.com/GayaNinja | |
* | |
* SVGSprite is a wonderful package, but doesn't enable responsive sprites out of the box. | |
* This moustache template generates a sass file with a mixin for the generated SVG-sprite. | |
* Calculates the position and size of the background by filename. | |
* Included SVG image scales to width and height. |
<span class="logo" data-logo="examplelogo"></span> | |
<!-- By default the .logo element should span 100% width. | |
If you need it to be constrained in size use a container element with a width % value on it --> | |
<style> | |
.logo--header { | |
width: 25%; | |
} | |
</style> | |
<div class="logo--header"> |
(function (window) { | |
var transitions = { | |
'transition': 'transitionend', | |
'WebkitTransition': 'webkitTransitionEnd', | |
'MozTransition': 'transitionend', | |
'OTransition': 'otransitionend' | |
}, | |
elem = document.createElement('div'); | |
for(var t in transitions){ |