import themeManager from '../themeManager'; describe('getTheme', () => { it.each` themeName ${'default'} ${'hero'} ${'legacy'} ${'non-existing'} ${'violet'} `('returns correct theme if theme name is $themeName', ({ themeName }: { themeName: string }) => { expect(themeManager.getTheme(themeName)).toMatchSnapshot(); }); });