Skip to content

Commit 2eb4bb8

Browse files
committed
test: add forbidden import case for '@/features/auth/someFile'
1 parent fdeb9b6 commit 2eb4bb8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/rules/app-imports.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ describe('app-imports', () => {
4646
filename: 'src/app/router.ts',
4747
errors: [{ messageId: 'forbiddenImport', data: { file: 'src/app/router.ts', target: '@/lib/some' } }],
4848
},
49+
{
50+
code: "import m from '@/features/auth/someFile'",
51+
filename: 'src/app/main.ts',
52+
errors: [{ messageId: 'forbiddenImport', data: { file: 'src/app/main.ts', target: '@/features/auth/someFile' } }],
53+
},
4954
],
5055
})
5156
})

0 commit comments

Comments
 (0)