Brent Van Minnen
Brent Van Minnen
When hitting assertions in asynchronous code, we don't get unhelpful callstacks, instead just getting the line number from bundle.js ``` var assert = require('chai').assert; describe('foo', function () { it('sync', function...
Consider the following situation ``` // shared.js console.log('hello from shared'); ---------- // entry1.js require('./shared'); ---------- // entry2.js require('./shared'); require('./one'); ---------- // one.js require('./two'); ---------- // two.js require('./three'); ---------- // three.js...
```js const sketch = () => { return ({ context: ctx, width, height }) => { ctx.fillStyle = 'red'; setTimeout(() => { console.log('I expect red'); ctx.fillRect(200, 200, 200, 200); },...
I have the following folder structure ``` ├── other │ ├── otherifle.js │ └── subdir │ └── subfile.js ├── rootfile.js └── src └── file.js ``` If I run the following...