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.
11 lines
184 B
TypeScript
11 lines
184 B
TypeScript
export const srcTestFolderConfig = function (baseUrl: string) {
|
|
return {
|
|
test: {
|
|
alias: {
|
|
'@/': decodeURI(new URL('./src/', baseUrl).pathname)
|
|
},
|
|
dir: 'tests'
|
|
}
|
|
}
|
|
}
|