test('renders all child components', () => {
const wrapper = mount(AppSettings, {
global: {
components: mockComponents,
mocks: {
$t: (key: string) => key, // Mocking the i18n $t function
},
},
});
Object.keys(mockComponents).forEach((componentName) => {
expect(wrapper.findComponent({ name: componentName }).exists()).toBe(true);
});
});
test('renders all child components', () => {
const wrapper = mount(AppSettings, {
global: {
components: mockComponents,
mocks: {
$t: (key: string) => key, // Mocking the i18n $t function
},
},
});
Object.keys(mockComponents).forEach((componentName) => {
expect(wrapper.findComponent({ name: componentName }).exists()).toBe(true);
});
});