(cfg: unknown)
| 29 | } |
| 30 | |
| 31 | function expectWellFormed(cfg: unknown) { |
| 32 | expect(cfg).not.toBeNull(); |
| 33 | expect(typeof cfg).toBe('object'); |
| 34 | expect(Array.isArray(cfg)).toBe(false); |
| 35 | } |
| 36 | |
| 37 | it('a bare-scalar-string config does NOT replace the config object', async () => { |
| 38 | const cfg = await loadConfig(await projectWith('just a bare string')); |
no outgoing calls
no test coverage detected