test('hides commands', () => { const r = new Runtime() r.addCoreExtensions() r.addPlugins(`${__dirname}/../fixtures/good-plugins`, { matching: 'threepack', hidden: true, }) expect(r.plugins.length).toBe(1) expect(r.plugins[0].commands[2].hidden).toBe(true) })
test('hides commands', () => { const r = new Runtime() r.addCoreExtensions() r.addPlugin(`${__dirname}/../fixtures/good-plugins/threepack`, { hidden: true }) expect(r.plugins.length).toBe(1) expect(r.plugins[0].commands[2].hidden).toBe(true) })