Skip to content

Commit d87029a

Browse files
committed
rm
1 parent 46ab7ec commit d87029a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

apps/admin-x-framework/src/test/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,20 @@ import MyComponent from '../../../src/components/MyComponent';
330330

331331
The vitest configuration automatically provides `@src` and `@test` aliases for cleaner imports.
332332

333+
**Important**: For path aliases to work in both tests and builds, you need to configure TypeScript path mapping in your `tsconfig.json`:
334+
335+
```json
336+
{
337+
"compilerOptions": {
338+
"baseUrl": ".",
339+
"paths": {
340+
"@src/*": ["./src/*"],
341+
"@test/*": ["./test/*"]
342+
}
343+
}
344+
}
345+
```
346+
333347
### 2. Use Centralized Configuration
334348
```typescript
335349
// ✅ Good - Use shared config

0 commit comments

Comments
 (0)