Skip to content

Commit bbde5c9

Browse files
chore(type-utils): fixed TypeOrValueSpecifier tests relativity (typescript-eslint#7256)
1 parent 41d6e9d commit bbde5c9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/type-utils/tests/TypeOrValueSpecifier.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -196,42 +196,42 @@ describe('TypeOrValueSpecifier', () => {
196196
],
197197
[
198198
'interface Foo {prop: string}; type Test = Foo;',
199-
{ from: 'file', name: 'Foo', path: 'file.ts' },
199+
{ from: 'file', name: 'Foo', path: 'tests/fixtures/file.ts' },
200200
],
201201
[
202202
'type Foo = {prop: string}; type Test = Foo;',
203-
{ from: 'file', name: 'Foo', path: 'file.ts' },
203+
{ from: 'file', name: 'Foo', path: 'tests/fixtures/file.ts' },
204204
],
205205
[
206206
'interface Foo {prop: string}; type Test = Foo;',
207207
{
208208
from: 'file',
209209
name: 'Foo',
210-
path: './////file.ts',
210+
path: 'tests/../tests/fixtures/////file.ts',
211211
},
212212
],
213213
[
214214
'type Foo = {prop: string}; type Test = Foo;',
215215
{
216216
from: 'file',
217217
name: 'Foo',
218-
path: './////file.ts',
218+
path: 'tests/../tests/fixtures/////file.ts',
219219
},
220220
],
221221
[
222222
'interface Foo {prop: string}; type Test = Foo;',
223223
{
224224
from: 'file',
225225
name: ['Foo', 'Bar'],
226-
path: 'file.ts',
226+
path: 'tests/fixtures/file.ts',
227227
},
228228
],
229229
[
230230
'type Foo = {prop: string}; type Test = Foo;',
231231
{
232232
from: 'file',
233233
name: ['Foo', 'Bar'],
234-
path: 'file.ts',
234+
path: 'tests/fixtures/file.ts',
235235
},
236236
],
237237
])('matches a matching file specifier: %s', runTestPositive);
@@ -247,14 +247,14 @@ describe('TypeOrValueSpecifier', () => {
247247
],
248248
[
249249
'interface Foo {prop: string}; type Test = Foo;',
250-
{ from: 'file', name: 'Foo', path: 'wrong-file.ts' },
250+
{ from: 'file', name: 'Foo', path: 'tests/fixtures/wrong-file.ts' },
251251
],
252252
[
253253
'interface Foo {prop: string}; type Test = Foo;',
254254
{
255255
from: 'file',
256256
name: ['Foo', 'Bar'],
257-
path: 'wrong-file.ts',
257+
path: 'tests/fixtures/wrong-file.ts',
258258
},
259259
],
260260
])("doesn't match a mismatched file specifier: %s", runTestNegative);
@@ -399,14 +399,14 @@ describe('TypeOrValueSpecifier', () => {
399399
['type Test = RegExp;', { from: 'file', name: ['RegExp', 'BigInt'] }],
400400
[
401401
'type Test = RegExp;',
402-
{ from: 'file', name: 'RegExp', path: 'file.ts' },
402+
{ from: 'file', name: 'RegExp', path: 'tests/fixtures/file.ts' },
403403
],
404404
[
405405
'type Test = RegExp;',
406406
{
407407
from: 'file',
408408
name: ['RegExp', 'BigInt'],
409-
path: 'file.ts',
409+
path: 'tests/fixtures/file.ts',
410410
},
411411
],
412412
[

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy