Skip to content

Instantly share code, notes, and snippets.

View chuckplantain's full-sized avatar

Flaming BombaDeen chuckplantain

  • Cape Neddick, Maine
View GitHub Profile
@mjackson
mjackson / app.js
Created December 29, 2015 05:07
Using webpack with pixi.js
var PIXI = require('pixi.js')
console.log(PIXI)
// Docs:
// https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver#MutationObserverInit
//
// This is what it actually means:
// =========================================================================================================
var $elementToStretch = $('#the-element');
var debouncedStretchInnards = _.debounce(stretchInnards);
var $allAncestors = $elementToStretch.parents();
@tamlyn
tamlyn / README.md
Last active July 7, 2022 09:48
Execution order of Jest/Jasmine test code

Execution order of Jest/Jasmine test code

While tests run in source order, surrounding code does not which can lead to hard to debug issues.

Compare the test file below with the sample output below that and note the order of the log messages.

Key points

  • Any code not inside of it, beforeAll, afterAll, beforeEach or afterEach runs immediately on initialisation.
  • This means code at the end of your file runs before even your before hooks.