James Allen

Results 13 comments of James Allen

OK so how about we have a way of specifying the format in the config or use the default? Options could be - `epoch` - default - `iso` for ISO-8601...

> How would that work? As an outline, it would: 1. use the `name` and find all the migrations that match in the filename. 2. establish the latest one -...

One thing that is related to this that I was looking for when I arrived here, was the GH Releases so that the binary can be downloaded and the end...

I use grunt at work, but more recently been playing with gulp and I have to say I much prefer the way it is pipeline based rather than configuration heavy.

Just FYI, my approach to 'fix' this is: ``` js import _config from '../config'; let config = _config; ``` Then rewire as normal: ``` js const thing = rewire('./path/to/thing'); thing.__set__('config',...

@pilphil the `rewire('./path/to/thing')` is just the path to the class under test. So if you have: ``` . ├── lib │   └── thing.js └── test └── test-thing.js ``` and you...

@robrtmain you could check out this answer of mine if stackoverflow... https://stackoverflow.com/a/30730818/2140627

@robertmain I have some examples somewhere... let me dig them out :) it does work (although I wasn't using TypeScript)

My class looks like this: ```js import { EventEmitter } from 'events'; import _logger from './logger'; import { stock as mappers } from './mappers'; import { stock as _StockStore} from...

@robertmain Yes, but with the caveat that you need to add a `let` to allow rewire to be able to substitute the mock.