Files
javascript-packages/packages/vitest-config/src-tests-folder-config.ts
T. R. Bernstein 757066091a feat(vitest-config)!: Return the plain config object
Returning the plain config object instead of the result of defineConfig,
allows for simpler modification/adaptation of the result.

BREAKING CHANGE: You must wrap the result in defineConfig yourself now.
2025-06-18 09:23:13 +02:00

11 lines
184 B
TypeScript

export const srcTestFolderConfig = function (baseUrl: string) {
return {
test: {
alias: {
'@/': decodeURI(new URL('./src/', baseUrl).pathname)
},
dir: 'tests'
}
}
}