Skip to content

Commit 4995b28

Browse files
committed
test: add case with out of alias directory
1 parent 5ae0837 commit 4995b28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/import-paths.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ tester.run('import-paths', rule, {
4343
filename: path.resolve('./src/foo/x/y/z/index.ts'),
4444
code: `import foo from '../../../index';`,
4545
},
46+
{
47+
name: 'relative imports from subdirectory is allowed for files inside alias (case with out of alias directory)',
48+
filename: path.resolve('./src/foo/x/y/z/index.ts'),
49+
code: `import foo from '../../../../index';`,
50+
},
4651
],
4752
invalid: [
4853
{

0 commit comments

Comments
 (0)