We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ab7ec commit d87029aCopy full SHA for d87029a
apps/admin-x-framework/src/test/README.md
@@ -330,6 +330,20 @@ import MyComponent from '../../../src/components/MyComponent';
330
331
The vitest configuration automatically provides `@src` and `@test` aliases for cleaner imports.
332
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
347
### 2. Use Centralized Configuration
348
```typescript
349
// ✅ Good - Use shared config
0 commit comments