<commit_before>import Layout from '@/views/Layout.vue'
import { shallowMount } from '@vue/test-utils'
import { mocked } from 'ts-jest/utils'
jest.mock('@/store/theme')
import { useTheme } from '@/store/theme'

describe('Layout', () => {
  test('renders snapshot', () => {
    mocked(useTheme)

    const wrapper = shallowMount(Layout)

    expect(wrapper.element).toMatchSnapshot()
  })
})<commit_msg>chore(tests): es geht auch ohne Jest-Mock!<commit_after>import Layout from '@/views/Layout.vue'
import { shallowMount } from '@vue/test-utils'
import { createTestingPinia } from '@pinia/testing'

describe('Layout', () => {
  test('renders snapshot', () => {
    const pinia = createTestingPinia()

    const wrapper = shallowMount(Layout, {
      global: { plugins: [pinia] },
    })

    expect(wrapper.element).toMatchSnapshot()
  })
})
{'fraction_non_alphanumeric': 0.16805721096543505, 'fraction_numerical': 0.0, 'mean_word_length': 4.3164556962025316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3627026', 'n_tokens_mistral': 271, 'n_tokens_neox': 263, 'n_words': 55}