(argv: string[] = [], env: NodeJS.ProcessEnv = {})
| 21 | |
| 22 | describe('ServerConfig', () => { |
| 23 | function parseConfig(argv: string[] = [], env: NodeJS.ProcessEnv = {}) { |
| 24 | const locator = new ConfigLocator(); |
| 25 | sinon.stub(locator, 'locate').returns(undefined); |
| 26 | return new ConfigParser( |
| 27 | '0.0.0', |
| 28 | ['node', 'main.js', ...argv], |
| 29 | env, |
| 30 | false, |
| 31 | locator, |
| 32 | ).parseConfig(); |
| 33 | } |
| 34 | |
| 35 | describe('validateConflicts', () => { |
| 36 | it('accepts a single argument from a conflict group', () => { |
no test coverage detected