(options)
| 572 | let _instance = null; |
| 573 | |
| 574 | function getTDDState(options) { |
| 575 | const wantedCwd = (options && options.workdir) || process.cwd(); |
| 576 | if (_instance && _instance.workdir === wantedCwd) return _instance; |
| 577 | _instance = new TDDStateMachine({ workdir: wantedCwd, ...(options || {}) }); |
| 578 | return _instance; |
| 579 | } |
| 580 | |
| 581 | function resetTDDState() { _instance = null; } |
| 582 |
no outgoing calls
no test coverage detected