{ "files": { "composables/api/api.constants.ts": { "language": "typescript", "mutants": [ { "id": "0", "mutatorName": "ObjectLiteral", "replacement": "{}", "statusReason": "Static mutant (and \"ignoreStatic\" was enabled)", "status": "Ignored", "static": true, "coveredBy": [], "location": { "end": { "column": 86, "line": 3 }, "start": { "column": 35, "line": 3 } } }, { "id": "1", "mutatorName": "ObjectLiteral", "replacement": "{}", "statusReason": "Static mutant (and \"ignoreStatic\" was enabled)", "status": "Ignored", "static": true, "coveredBy": [], "location": { "end": { "column": 84, "line": 3 }, "start": { "column": 46, "line": 3 } } }, { "id": "2", "mutatorName": "StringLiteral", "replacement": "\"\"", "statusReason": "Static mutant (and \"ignoreStatic\" was enabled)", "status": "Ignored", "static": true, "coveredBy": [], "location": { "end": { "column": 82, "line": 3 }, "start": { "column": 64, "line": 3 } } } ], "source": "import type { UseFetchOptions } from \"#app\";\n\nconst DEFAULT_USE_FETCH_OPTIONS = { headers: { \"Content-Type\": \"application/json\" } } satisfies UseFetchOptions;\n\nexport { DEFAULT_USE_FETCH_OPTIONS };" }, "composables/api/role/useFetchRoles.ts": { "language": "typescript", "mutants": [ { "id": "3", "mutatorName": "BlockStatement", "replacement": "{}", "statusReason": "composables/api/role/useFetchRoles.ts(10,27): error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.\n", "status": "CompileError", "static": false, "killedBy": [], "coveredBy": [ "9", "10" ], "location": { "end": { "column": 2, "line": 22 }, "start": { "column": 41, "line": 10 } } }, { "id": "4", "mutatorName": "BlockStatement", "replacement": "{}", "statusReason": "composables/api/role/useFetchRoles.ts(14,69): error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.\n", "status": "CompileError", "static": false, "killedBy": [], "coveredBy": [ "9", "10" ], "location": { "end": { "column": 4, "line": 20 }, "start": { "column": 121, "line": 14 } } }, { "id": "5", "mutatorName": "StringLiteral", "replacement": "``", "statusReason": "expect(received).toHaveBeenCalledExactlyOnceWith(expected)\n\nExpected mock function to have been called exactly once with Array [\n \"http://127.0.0.1/roles\",\n Object {\n \"headers\": Object {\n \"Content-Type\": \"application/json\",\n },\n \"method\": \"GET\",\n },\n \"$dk08ZMi4Ri\",\n], but it was called with \"\"", "status": "Killed", "testsCompleted": 1, "static": false, "killedBy": [ "9" ], "coveredBy": [ "9", "10" ], "location": { "end": { "column": 47, "line": 15 }, "start": { "column": 29, "line": 15 } } }, { "id": "6", "mutatorName": "ObjectLiteral", "replacement": "{}", "statusReason": "expect(received).toHaveBeenCalledExactlyOnceWith(expected)\n\nExpected mock function to have been called exactly once with Array [\n \"http://127.0.0.1/roles\",\n Object {\n \"headers\": Object {\n \"Content-Type\": \"application/json\",\n },\n \"method\": \"GET\",\n },\n \"$dk08ZMi4Ri\",\n], but it was called with \"http://127.0.0.1/roles\"", "status": "Killed", "testsCompleted": 1, "static": false, "killedBy": [ "9" ], "coveredBy": [ "9", "10" ], "location": { "end": { "column": 6, "line": 19 }, "start": { "column": 49, "line": 15 } } }, { "id": "7", "mutatorName": "StringLiteral", "replacement": "\"\"", "statusReason": "composables/api/role/useFetchRoles.ts(15,5): error TS2322: Type '_AsyncData> | null, FetchError | null>' is not assignable to type '_AsyncData | null>'.\n Type 'PickFrom<_ResT, KeysOf> | null' is not assignable to type 'Role[] | null'.\n Type 'PickFrom<_ResT, KeysOf>' is not assignable to type 'Role[] | null'.\n Type '_ResT | (_ResT extends Record ? keyof _ResT extends (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) ? _ResT : (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) extends never ? _ResT : Pick<...> : _ResT)' is not assignable to type 'Role[] | null'.\n Type '_ResT extends Record ? keyof _ResT extends (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) ? _ResT : (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) extends never ? _ResT : Pick<...> : _ResT' is not assignable to type 'Role[] | null'.\n Type '_ResT | (keyof _ResT extends (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) ? _ResT : (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) extends never ? _ResT : Pick<...>)' is not assignable to type 'Role[] | null'.\n Type '_ResT' is not assignable to type 'Role[] | null'.\n Type '_ResT' is not assignable to type 'Role[]'.\n Type '_ResT extends Record ? keyof _ResT extends (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) ? _ResT : (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) extends never ? _ResT : Pick<...> : _ResT' is not assignable to type 'Role[]'.\n Type 'PickFrom<_ResT, KeysOf>' is not assignable to type 'Role[]'.\n Type '_ResT | (_ResT extends Record ? keyof _ResT extends (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) ? _ResT : (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) extends never ? _ResT : Pick<...> : _ResT)' is not assignable to type 'Role[]'.\n Type '_ResT extends Record ? keyof _ResT extends (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) ? _ResT : (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) extends never ? _ResT : Pick<...> : _ResT' is not assignable to type 'Role[]'.\n Type '_ResT | (keyof _ResT extends (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) ? _ResT : (DataT extends DataT ? keyof DataT extends string ? string & keyof DataT : never : never) extends never ? _ResT : Pick<...>)' is not assignable to type 'Role[]'.\n Type '_ResT' is not assignable to type 'Role[]'.\ncomposables/api/role/useFetchRoles.ts(16,7): error TS2769: No overload matches this call.\n Overload 1 of 2, '(request: NitroFetchRequest | Ref | (() => NitroFetchRequest), opts?: UseFetchOptions, null, NitroFetchRequest, AvailableRouterMethod<...>> | undefined): AsyncData<...>', gave the following error.\n Type '\"\"' is not assignable to type '\"GET\" | \"HEAD\" | \"PATCH\" | \"POST\" | \"PUT\" | \"DELETE\" | \"CONNECT\" | \"OPTIONS\" | \"TRACE\" | \"get\" | \"head\" | \"patch\" | \"post\" | \"put\" | \"delete\" | \"connect\" | \"options\" | \"trace\" | Ref<...> | undefined'.\n Overload 2 of 2, '(request: NitroFetchRequest | Ref | (() => NitroFetchRequest), opts?: UseFetchOptions, Role[], NitroFetchRequest, AvailableRouterMethod<...>> | undefined): AsyncData<...>', gave the following error.\n Type '\"\"' is not assignable to type '\"GET\" | \"HEAD\" | \"PATCH\" | \"POST\" | \"PUT\" | \"DELETE\" | \"CONNECT\" | \"OPTIONS\" | \"TRACE\" | \"get\" | \"head\" | \"patch\" | \"post\" | \"put\" | \"delete\" | \"connect\" | \"options\" | \"trace\" | Ref<...> | undefined'.\n", "status": "CompileError", "static": false, "killedBy": [], "coveredBy": [ "9", "10" ], "location": { "end": { "column": 20, "line": 16 }, "start": { "column": 15, "line": 16 } } }, { "id": "8", "mutatorName": "ObjectLiteral", "replacement": "{}", "statusReason": "composables/api/role/useFetchRoles.ts(21,3): error TS2741: Property 'fetchRoles' is missing in type '{}' but required in type 'UseFetchRoles'.\n", "status": "CompileError", "static": false, "killedBy": [], "coveredBy": [ "9", "10" ], "location": { "end": { "column": 24, "line": 21 }, "start": { "column": 10, "line": 21 } } } ], "source": "import type { UseFetchOptions } from \"#app\";\n\nimport { DEFAULT_USE_FETCH_OPTIONS } from \"~/composables/api/api.constants\";\nimport type { Role } from \"~/composables/api/role/types/role.types\";\n\ntype UseFetchRoles = {\n fetchRoles: (options?: UseFetchOptions) => Promise>>;\n};\n\nfunction useFetchRoles(): UseFetchRoles {\n const config = useRuntimeConfig();\n const { baseUrl } = config.public.werewolvesAssistantApi;\n\n async function fetchRoles(options: UseFetchOptions = {}): Promise>> {\n return useFetch(`${baseUrl}/roles`, {\n method: \"GET\",\n ...DEFAULT_USE_FETCH_OPTIONS,\n ...options,\n });\n }\n return { fetchRoles };\n}\n\nexport { useFetchRoles };" }, "pages/index.vue": { "language": "html", "mutants": [ { "id": "9", "mutatorName": "ObjectLiteral", "replacement": "{}", "statusReason": "expected {} to strictly equal { icon: 'fa-2x', …(1) }", "status": "Killed", "testsCompleted": 4, "static": false, "killedBy": [ "3" ], "coveredBy": [ "0", "1", "2", "3", "4", "5" ], "location": { "end": { "column": 2, "line": 61 }, "start": { "column": 77, "line": 58 } } }, { "id": "10", "mutatorName": "StringLiteral", "replacement": "\"\"", "statusReason": "expected { label: '', icon: 'fa-2x' } to strictly equal { icon: 'fa-2x', …(1) }", "status": "Killed", "testsCompleted": 4, "static": false, "killedBy": [ "3" ], "coveredBy": [ "0", "1", "2", "3", "4", "5" ], "location": { "end": { "column": 39, "line": 59 }, "start": { "column": 10, "line": 59 } } }, { "id": "11", "mutatorName": "StringLiteral", "replacement": "\"\"", "statusReason": "expected { …(2) } to strictly equal { icon: 'fa-2x', …(1) }", "status": "Killed", "testsCompleted": 4, "static": false, "killedBy": [ "3" ], "coveredBy": [ "0", "1", "2", "3", "4", "5" ], "location": { "end": { "column": 16, "line": 60 }, "start": { "column": 9, "line": 60 } } } ], "source": "\n\n\n\n" }, "stores/role/useRolesStore.ts": { "language": "typescript", "mutants": [ { "id": "12", "mutatorName": "BlockStatement", "replacement": "{}", "statusReason": "tests/unit/specs/stores/useRolesStore.spec.ts(25,23): error TS2339: Property 'roles' does not exist on type 'Store'.\ntests/unit/specs/stores/useRolesStore.spec.ts(26,23): error TS2339: Property 'fetchingRoleStatus' does not exist on type 'Store'.\ntests/unit/specs/stores/useRolesStore.spec.ts(32,24): error TS2339: Property 'fetchAndSetRoles' does not exist on type 'Store'.\ntests/unit/specs/stores/useRolesStore.spec.ts(45,24): error TS2339: Property 'fetchAndSetRoles' does not exist on type 'Store'.\ntests/unit/specs/stores/useRolesStore.spec.ts(47,25): error TS2339: Property 'roles' does not exist on type 'Store'.\n", "status": "CompileError", "static": false, "coveredBy": [ "6", "7", "8" ], "location": { "end": { "column": 2, "line": 26 }, "start": { "column": 57, "line": 9 } } }, { "id": "15", "mutatorName": "StringLiteral", "replacement": "\"\"", "statusReason": "stores/role/useRolesStore.ts(16,5): error TS2322: Type '\"\"' is not assignable to type 'AsyncDataRequestStatus'.\n", "status": "CompileError", "static": false, "coveredBy": [ "7", "8" ], "location": { "end": { "column": 41, "line": 16 }, "start": { "column": 32, "line": 16 } } }, { "id": "13", "mutatorName": "StringLiteral", "replacement": "\"\"", "statusReason": "stores/role/useRolesStore.ts(12,58): error TS2345: Argument of type '\"\"' is not assignable to parameter of type 'AsyncDataRequestStatus'.\n", "status": "CompileError", "static": false, "coveredBy": [ "6", "7", "8" ], "location": { "end": { "column": 64, "line": 12 }, "start": { "column": 58, "line": 12 } } }, { "id": "14", "mutatorName": "BlockStatement", "replacement": "{}", "statusReason": "expect(received).toHaveBeenCalledExactlyOnceWith(expected)\n\nExpected mock function to have been called exactly once, but it was called 0 times", "status": "Killed", "static": false, "testsCompleted": 1, "killedBy": [ "7" ], "coveredBy": [ "7", "8" ], "location": { "end": { "column": 4, "line": 20 }, "start": { "column": 52, "line": 15 } } }, { "id": "16", "mutatorName": "ObjectLiteral", "replacement": "{}", "statusReason": "tests/unit/specs/stores/useRolesStore.spec.ts(25,23): error TS2339: Property 'roles' does not exist on type 'Store>, Pick<{}, never>, Pick<{}, never>>'.\ntests/unit/specs/stores/useRolesStore.spec.ts(26,23): error TS2339: Property 'fetchingRoleStatus' does not exist on type 'Store>, Pick<{}, never>, Pick<{}, never>>'.\ntests/unit/specs/stores/useRolesStore.spec.ts(32,24): error TS2339: Property 'fetchAndSetRoles' does not exist on type 'Store>, Pick<{}, never>, Pick<{}, never>>'.\ntests/unit/specs/stores/useRolesStore.spec.ts(45,24): error TS2339: Property 'fetchAndSetRoles' does not exist on type 'Store>, Pick<{}, never>, Pick<{}, never>>'.\ntests/unit/specs/stores/useRolesStore.spec.ts(47,25): error TS2339: Property 'roles' does not exist on type 'Store>, Pick<{}, never>, Pick<{}, never>>'.\n", "status": "CompileError", "static": false, "coveredBy": [ "6", "7", "8" ], "location": { "end": { "column": 4, "line": 25 }, "start": { "column": 10, "line": 21 } } } ], "source": "import type { AsyncDataRequestStatus } from \"#app/composables/asyncData\";\nimport { ref } from \"vue\";\nimport { defineStore } from \"pinia\";\n\nimport type { Role } from \"~/composables/api/role/types/role.types\";\nimport { useFetchRoles } from \"~/composables/api/role/useFetchRoles\";\nimport { StoreIds } from \"~/stores/enums/store.enum\";\n\nconst useRolesStore = defineStore(StoreIds.ROLES, () => {\n const { fetchRoles } = useFetchRoles();\n\n const fetchingRoleStatus = ref(\"idle\");\n const roles = ref(null);\n\n async function fetchAndSetRoles(): Promise {\n fetchingRoleStatus.value = \"pending\";\n const { data, status } = await fetchRoles();\n roles.value = data.value;\n fetchingRoleStatus.value = status.value;\n }\n return {\n roles,\n fetchingRoleStatus,\n fetchAndSetRoles,\n };\n});\n\nexport { useRolesStore };" } }, "schemaVersion": "1.0", "thresholds": { "high": 100, "low": 100, "break": 100 }, "testFiles": { "tests/unit/specs/pages/index.nuxt.spec.ts": { "tests": [ { "id": "0", "name": "Index Page Component should render component and match snapshot when mounted." }, { "id": "1", "name": "Index Page Component Title should display translated title when rendered." }, { "id": "2", "name": "Index Page Component Play button should display play button with translated label when rendered." }, { "id": "3", "name": "Index Page Component Play button should display play button with pass through data when rendered." }, { "id": "4", "name": "Index Page Component About button should display about button with translated label when rendered." }, { "id": "5", "name": "Index Page Component About button should display about button with pass through data when rendered." } ], "source": "import type { mount } from \"@vue/test-utils\";\nimport type { ButtonPassThroughOptions } from \"primevue/button\";\nimport type { PassThrough } from \"primevue/ts-helpers\";\n\nimport type { VuePrimeButton } from \"#components\";\nimport Index from \"@/pages/index.vue\";\nimport { mountSuspendedComponent } from \"~/tests/unit/utils/mount.utils\";\n\ndescribe(\"Index Page Component\", () => {\n let wrapper: ReturnType>;\n\n beforeEach(async() => {\n wrapper = await mountSuspendedComponent(Index);\n });\n\n it(\"should render component and match snapshot when mounted.\", () => {\n expect(wrapper).toBeTruthy();\n expect(wrapper.html()).toMatchSnapshot();\n });\n\n describe(\"Title\", () => {\n it(\"should display translated title when rendered.\", () => {\n const title = wrapper.find(\"[aria-label='Werewolves Assistant']\");\n\n expect(title.text()).toBe(\"Werewolves Assistant\");\n });\n });\n\n describe(\"Play button\", () => {\n it(\"should display play button with translated label when rendered.\", () => {\n const playButton = wrapper.findComponent(\"[label='Play']\");\n\n expect(playButton.attributes(\"label\")).toBe(\"Play\");\n });\n\n it(\"should display play button with pass through data when rendered.\", async() => {\n wrapper = await mountSuspendedComponent(Index, { shallow: false });\n const playButton = wrapper.findComponent(\"[aria-label='Play']\");\n\n expect(playButton.props(\"pt\")).toStrictEqual>({\n icon: \"fa-2x\",\n label: \"fs-3 fw-bold text-uppercase\",\n });\n });\n });\n\n describe(\"About button\", () => {\n it(\"should display about button with translated label when rendered.\", () => {\n const aboutButton = wrapper.findComponent(\"[label='About']\");\n\n expect(aboutButton.attributes(\"label\")).toBe(\"About\");\n });\n\n it(\"should display about button with pass through data when rendered.\", async() => {\n wrapper = await mountSuspendedComponent(Index, { shallow: false });\n const aboutButton = wrapper.findComponent(\"[aria-label='About']\");\n\n expect(aboutButton.props(\"pt\")).toStrictEqual>({\n icon: \"fa-2x\",\n label: \"fs-3 fw-bold text-uppercase\",\n });\n });\n });\n});" }, "tests/unit/specs/stores/useRolesStore.spec.ts": { "tests": [ { "id": "6", "name": "Roles Store should have initial state when created." }, { "id": "7", "name": "Roles Store fetchAndSetRoles should fetch roles when called." }, { "id": "8", "name": "Roles Store fetchAndSetRoles should set roles when called." } ], "source": "import { createPinia, setActivePinia } from \"pinia\";\nimport { expect } from \"vitest\";\nimport type { Mock } from \"vitest\";\nimport { ref } from \"vue\";\n\nimport type { Role } from \"~/composables/api/role/types/role.types\";\nimport { useRolesStore } from \"~/stores/role/useRolesStore\";\nimport * as UseFetchRolesComposable from \"~/composables/api/role/useFetchRoles\";\nimport { createFakeRole } from \"~/tests/unit/utils/factories/composables/api/role/types/role.types.factory\";\n\ndescribe(\"Roles Store\", () => {\n let mockedUseFetchRoles: {\n fetchRoles: Mock;\n };\n\n beforeEach(() => {\n mockedUseFetchRoles = { fetchRoles: vi.fn().mockResolvedValue({ data: ref([]), status: ref(\"success\") }) };\n vi.spyOn(UseFetchRolesComposable, \"useFetchRoles\").mockImplementation(() => mockedUseFetchRoles);\n setActivePinia(createPinia());\n });\n\n it(\"should have initial state when created.\", () => {\n const rolesStore = useRolesStore();\n\n expect(rolesStore.roles).toBeNull();\n expect(rolesStore.fetchingRoleStatus).toBe(\"idle\");\n });\n\n describe(\"fetchAndSetRoles\", () => {\n it(\"should fetch roles when called.\", async() => {\n const rolesStore = useRolesStore();\n await rolesStore.fetchAndSetRoles();\n\n expect(mockedUseFetchRoles.fetchRoles).toHaveBeenCalledExactlyOnceWith();\n });\n\n it(\"should set roles when called.\", async() => {\n const roles: Role[] = [\n createFakeRole(),\n createFakeRole(),\n createFakeRole(),\n ];\n mockedUseFetchRoles.fetchRoles.mockResolvedValue({ data: ref(roles), status: ref(\"success\") });\n const rolesStore = useRolesStore();\n await rolesStore.fetchAndSetRoles();\n\n expect(rolesStore.roles).toStrictEqual(roles);\n });\n });\n});" }, "tests/unit/specs/composables/api/role/useFetchRoles.spec.ts": { "tests": [ { "id": "9", "name": "Use Fetch Roles Composable fetchRoles should fetch roles when called without options." }, { "id": "10", "name": "Use Fetch Roles Composable fetchRoles should fetch roles when called with options." } ], "source": "import { mockNuxtImport } from \"@nuxt/test-utils/runtime\";\n\nimport { useFetchRoles } from \"~/composables/api/role/useFetchRoles\";\nimport { createFakeUseRuntimeConfig } from \"~/tests/unit/utils/factories/composables/nuxt/useRuntimeConfig\";\n\nconst { useFetchMock, useRuntimeConfig } = vi.hoisted(() => ({\n useFetchMock: vi.fn(),\n useRuntimeConfig: vi.fn(),\n}));\n\ndescribe(\"Use Fetch Roles Composable\", () => {\n beforeAll(() => {\n mockNuxtImport(\"useRuntimeConfig\", () => useRuntimeConfig);\n mockNuxtImport(\"useFetch\", () => useFetchMock);\n });\n beforeEach(() => {\n useRuntimeConfig.mockReturnValue(createFakeUseRuntimeConfig());\n });\n\n describe(\"fetchRoles\", () => {\n it(\"should fetch roles when called without options.\", async() => {\n await useFetchRoles().fetchRoles();\n\n expect(useFetchMock).toHaveBeenCalledExactlyOnceWith(\"http://127.0.0.1/roles\", {\n method: \"GET\",\n headers: { \"Content-Type\": \"application/json\" },\n }, \"$dk08ZMi4Ri\");\n });\n\n it(\"should fetch roles when called with options.\", async() => {\n await useFetchRoles().fetchRoles({ method: \"POST\" });\n\n expect(useFetchMock).toHaveBeenCalledExactlyOnceWith(\"http://127.0.0.1/roles\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n }, \"$dk08ZMi4Ri\");\n });\n });\n});" }, "tests/unit/specs/app.nuxt.spec.ts": { "tests": [ { "id": "11", "name": "App Component should render component and match snapshot when mounted." }, { "id": "12", "name": "App Component should fetch and set roles from store when mounted." } ], "source": "import type { mount } from \"@vue/test-utils\";\n\nimport App from \"@/app.vue\";\nimport { createFakeUseRoleStore } from \"~/tests/unit/utils/factories/stores/role/useRoleStore.factory\";\nimport { mountSuspendedComponent } from \"~/tests/unit/utils/mount.utils\";\n\nconst useRolesStoreMock = createFakeUseRoleStore();\nvi.mock(\"~/stores/role/useRolesStore\", () => ({ useRolesStore: vi.fn(() => useRolesStoreMock) }));\n\ndescribe(\"App Component\", () => {\n let wrapper: ReturnType>;\n\n beforeEach(async() => {\n wrapper = await mountSuspendedComponent(App);\n });\n\n it(\"should render component and match snapshot when mounted.\", () => {\n expect(wrapper).toBeTruthy();\n expect(wrapper.html()).toMatchSnapshot();\n });\n\n it(\"should fetch and set roles from store when mounted.\", () => {\n expect(useRolesStoreMock.fetchAndSetRoles).toHaveBeenCalledWith();\n });\n});" }, "tests/unit/specs/components/index/index-footer.nuxt.spec.ts": { "tests": [ { "id": "13", "name": "Index Footer Component should render component and match snapshot when mounted." }, { "id": "14", "name": "Index Footer Component Contact Me Button should render contact me with translated text button when rendered." } ], "source": "import type { mount } from \"@vue/test-utils\";\n\nimport { IndexFooter } from \"#components\";\nimport { mountSuspendedComponent } from \"~/tests/unit/utils/mount.utils\";\n\ndescribe(\"Index Footer Component\", () => {\n let wrapper: ReturnType>;\n\n beforeEach(async() => {\n wrapper = await mountSuspendedComponent(IndexFooter);\n });\n\n it(\"should render component and match snapshot when mounted.\", () => {\n expect(wrapper).toBeTruthy();\n expect(wrapper.html()).toMatchSnapshot();\n });\n\n describe(\"Contact Me Button\", () => {\n it(\"should render contact me with translated text button when rendered.\", () => {\n const contactMeButton = wrapper.find(\"[aria-label='Contact me']\");\n\n expect(contactMeButton.text()).toBe(\"Contact me\");\n });\n });\n});" }, "tests/unit/specs/modules/i18n.spec.ts": { "tests": [ { "id": "15", "name": "I18n module Locales should contain all keys set in fr locale when locale is en." } ], "source": "import { crush } from \"radash\";\n\nimport fr from \"~/modules/i18n/locales/fr.json\";\nimport en from \"~/modules/i18n/locales/en.json\";\n\ndescribe(\"I18n module\", () => {\n describe(\"Locales\", () => {\n const flatFrLocale = crush(fr);\n const frKeys = Object.keys(flatFrLocale).toSorted();\n\n it(\"should contain all keys set in fr locale when locale is en.\", () => {\n const flatEnLocale = crush(en);\n const enKeys = Object.keys(flatEnLocale).toSorted();\n\n expect(frKeys).toStrictEqual(enKeys);\n });\n });\n});" } }, "projectRoot": "/Users/antoinezanardi/WebstormProjects/werewolves-assistant-web-next", "config": { "cleanTempDir": "always", "incremental": true, "incrementalFile": "tests/stryker/incremental.json", "checkers": [ "typescript" ], "tsconfigFile": "tsconfig.json", "testRunner": "vitest", "ignoreStatic": true, "mutate": [ "app.vue", "components/**/*.{ts,vue}", "composables/**/*.ts", "pages/**/*.{ts,vue}", "stores/**/*.ts" ], "plugins": [ "@stryker-mutator/vitest-runner", "@stryker-mutator/typescript-checker" ], "vitest": { "configFile": "config/vitest/vitest.unit-config.ts" }, "reporters": [ "clear-text", "progress", "html", "json" ], "htmlReporter": { "fileName": "tests/stryker/coverage/index.html" }, "jsonReporter": { "fileName": "tests/stryker/coverage/mutation.json" }, "thresholds": { "high": 100, "low": 100, "break": 100 }, "disableTypeChecks": "{tests,src,lib}/**/*.{js,ts,jsx,tsx,html,vue}", "configFile": "config/stryker/stryker.conf.mjs", "allowConsoleColors": true, "checkerNodeArgs": [], "commandRunner": { "command": "npm test" }, "coverageAnalysis": "perTest", "clearTextReporter": { "allowColor": true, "allowEmojis": false, "logTests": true, "maxTestsToLog": 3, "reportTests": true, "reportMutants": true, "reportScoreTable": true }, "dashboard": { "baseUrl": "https://dashboard.stryker-mutator.io/api/reports", "reportType": "full" }, "dryRunOnly": false, "eventReporter": { "baseDir": "reports/mutation/events" }, "ignorePatterns": [], "force": false, "fileLogLevel": "off", "inPlace": false, "logLevel": "info", "maxConcurrentTestRunners": 9007199254740991, "maxTestRunnerReuse": 0, "mutator": { "plugins": null, "excludedMutations": [] }, "appendPlugins": [], "symlinkNodeModules": true, "tempDirName": ".stryker-tmp", "testRunnerNodeArgs": [], "timeoutFactor": 1.5, "timeoutMS": 5000, "dryRunTimeoutMinutes": 5, "warnings": true, "disableBail": false, "allowEmpty": false, "ignorers": [], "typescriptChecker": { "prioritizePerformanceOverAccuracy": true } }, "framework": { "name": "StrykerJS", "version": "8.0.0", "branding": { "homepageUrl": "https://stryker-mutator.io", "imageUrl": "data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1458 1458' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' clip-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2'%3E%3Cpath fill='none' d='M0 0h1458v1458H0z'/%3E%3CclipPath id='a'%3E%3Cpath d='M0 0h1458v1458H0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M1458 729c0 402.655-326.345 729-729 729S0 1131.655 0 729C0 326.445 326.345 0 729 0s729 326.345 729 729' fill='%23e74c3c' fill-rule='nonzero'/%3E%3Cpath d='M778.349 1456.15L576.6 1254.401l233-105 85-78.668v-64.332l-257-257-44-187-50-208 251.806-82.793L1076.6 389.401l380.14 379.15c-19.681 367.728-311.914 663.049-678.391 687.599z' fill-opacity='.3'/%3E%3Cpath d='M753.4 329.503c41.79 0 74.579 7.83 97.925 25.444 23.571 18.015 41.69 43.956 55.167 77.097l11.662 28.679 165.733-58.183-14.137-32.13c-26.688-60.655-64.896-108.61-114.191-144.011-49.329-35.423-117.458-54.302-204.859-54.302-50.78 0-95.646 7.376-134.767 21.542-40.093 14.671-74.09 34.79-102.239 60.259-28.84 26.207-50.646 57.06-65.496 92.701-14.718 35.052-22.101 72.538-22.101 112.401 0 72.536 20.667 133.294 61.165 182.704 38.624 47.255 98.346 88.037 179.861 121.291 42.257 17.475 78.715 33.125 109.227 46.994 27.193 12.361 49.294 26.124 66.157 41.751 15.309 14.186 26.497 30.584 33.63 49.258 7.721 20.214 11.16 45.69 11.16 76.402 0 28.021-4.251 51.787-13.591 71.219-8.832 18.374-20.171 33.178-34.523 44.219-14.787 11.374-31.193 19.591-49.393 24.466-19.68 5.359-39.14 7.993-58.69 7.993-29.359 0-54.387-3.407-75.182-10.747-20.112-7.013-37.144-16.144-51.259-27.486-13.618-11.009-24.971-23.766-33.744-38.279-9.64-15.8-17.272-31.924-23.032-48.408l-10.965-31.376-161.669 60.585 10.734 30.124c10.191 28.601 24.197 56.228 42.059 82.748 18.208 27.144 41.322 51.369 69.525 72.745 27.695 21.075 60.904 38.218 99.481 51.041 37.777 12.664 82.004 19.159 132.552 19.159 49.998 0 95.818-8.321 137.611-24.622 42.228-16.471 78.436-38.992 108.835-67.291 30.719-28.597 54.631-62.103 71.834-100.642 17.263-38.56 25.923-79.392 25.923-122.248 0-54.339-8.368-100.37-24.208-138.32-16.29-38.759-38.252-71.661-65.948-98.797-26.965-26.418-58.269-48.835-93.858-67.175-33.655-17.241-69.196-33.11-106.593-47.533-35.934-13.429-65.822-26.601-89.948-39.525-22.153-11.868-40.009-24.21-53.547-37.309-11.429-11.13-19.83-23.678-24.718-37.664-5.413-15.49-7.98-33.423-7.98-53.577 0-40.883 11.293-71.522 37.086-90.539 28.443-20.825 64.985-30.658 109.311-30.658z' fill='%23f1c40f' fill-rule='nonzero'/%3E%3Cpath d='M720 0h18v113h-18zM1458 738v-18h-113v18h113zM720 1345h18v113h-18zM113 738v-18H0v18h113z'/%3E%3C/g%3E%3C/svg%3E" }, "dependencies": { "@stryker-mutator/typescript-checker": "8.0.0", "typescript": "5.3.3" } } }