fix(testing): add aliases for package and locales in vitest configuration
- Introduced alias mappings for "@pkg" pointing to the package.json file and "@locales" pointing to the locales directory. - This enhancement simplifies module resolution and improves code organization in the renderer layer. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
ff8cee07e1
commit
0b92079dd0
|
|
@ -16,6 +16,10 @@ export default defineProject({
|
|||
globals: true,
|
||||
setupFiles: [resolve(__dirname, "./setup-file.ts")],
|
||||
environment: "happy-dom",
|
||||
alias: {
|
||||
"@pkg": resolve(__dirname, "./package.json"),
|
||||
"@locales": resolve(__dirname, "../../../../locales"),
|
||||
},
|
||||
},
|
||||
|
||||
define: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue