Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Kial Jinnah <[email protected]>
  • Loading branch information
kialj876 committed Nov 7, 2024
1 parent 644bd99 commit 0848be8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions strr-strata-web/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { fileURLToPath } from 'node:url'
import path from 'path'
import { defineVitestConfig } from '@nuxt/test-utils/config'

export default defineVitestConfig({
test: {
environment: 'nuxt',
dir: 'tests',
coverage: {
provider: 'v8',
reportsDirectory: path.resolve(__dirname, 'tests/coverage'), // This ensures an absolute path,
include: [
'pages/**',
'layouts/**',
'components/**',
'composables/**',
'utils/**',
'services/**',
'plugins/**',
'stores/**'
]
},
includeSource: ['../pages/index.vue'],
environmentOptions: {
nuxt: {
rootDir: fileURLToPath(new URL('./', import.meta.url)),
domEnvironment: 'happy-dom'
// overrides: {
// plugins: [
// mockedKeycloak, 'keycloak'
// ]
// }
// mock: {
// indexedDb: true,
// },
}
},
// setupFiles: './tests/setup/i18n.ts',
globals: true
}
})

0 comments on commit 0848be8

Please sign in to comment.