Skip to content

Instantly share code, notes, and snippets.

@nickpresta
Created October 5, 2016 01:47
Show Gist options
  • Save nickpresta/feda93b289e0361a5cd0f6b4286460f9 to your computer and use it in GitHub Desktop.
Save nickpresta/feda93b289e0361a5cd0f6b4286460f9 to your computer and use it in GitHub Desktop.
jest@16.0.0
babel@5.8.23
npm@3.9.5
node v4.4.3
$ npm test -- --verbose
> lighthouse@6.6.2 test /Users/nickpresta/waveapps/src/sandbox/lighthouse
> jest "--verbose"
PASS tests/components/waveWizard.spec.js
WaveWizard component
render component
✓ component should render with one step (33ms)
✓ component should render with multiple steps (16ms)
selecting step as current
✓ should select the first step (24ms)
✓ should select the first incomplete step (21ms)
✓ should display the completed content node if all steps complete (32ms)
✓ should respect initialIndex if set (48ms)
returning to previous steps
✓ should be able to return to a previously completed step (55ms)
✓ should not return to an incomplete step (16ms)
✓ should return to future step if all steps completed (29ms)
complete step
✓ should call onComplete function on button click (41ms)
✓ moves to next step if isComplete (88ms)
✓ does not move to next step if not isComplete (33ms)
✓ moves to next returnable step if future steps are complete (82ms)
RUNS tests/components/waveWizardContent.spec.js
<--- Last few GCs --->
22265 ms: Scavenge 1397.1 (1458.0) -> 1397.1 (1458.0) MB, 1.7 / 0 ms (+ 2.9 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
23126 ms: Mark-sweep 1397.1 (1458.0) -> 1396.7 (1458.0) MB, 861.2 / 0 ms (+ 36.0 ms in 433 steps since start of marking, biggest step 3.2 ms) [last resort gc].
24021 ms: Mark-sweep 1396.7 (1458.0) -> 1396.7 (1458.0) MB, 894.3 / 0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x397db21b4629 <JS Object>
1: printNumber(aka printNumber) [/Users/nickpresta/waveapps/src/sandbox/lighthouse/node_modules/pretty-format/index.js:~33] [pc=0x336bbc4fa0d2] (this=0x397db21041b9 <undefined>,val=33749)
2: printBasicValue(aka printBasicValue) [/Users/nickpresta/waveapps/src/sandbox/lighthouse/node_modules/pretty-format/index.js:64] [pc=0x336bbc4ee254] (this=0x397db21041b9 <undefined>,val=33749,printFu...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Abort trap: 6
var babel = require('babel');
module.exports = {
process: function(src, filename) {
if (filename.indexOf('node_modules') === -1 && babel.canCompile(filename)) {
return babel.transform(src, {filename: filename}).code;
}
return src;
}
};
{
// OMITTED
"jest": {
"scriptPreprocessor": "<rootDir>/jest-preprocessor.js",
"testPathDirs": [
"<rootDir>/tests"
]
},
// OMITTED
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment