From 684b214d0fa59b12854a22746526e2ed45e152b4 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 17 Jul 2023 12:53:49 -0400 Subject: [PATCH] chore(type-utils): fixed TypeOrValueSpecifier tests relativity --- .../tests/TypeOrValueSpecifier.test.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/type-utils/tests/TypeOrValueSpecifier.test.ts b/packages/type-utils/tests/TypeOrValueSpecifier.test.ts index a91358b4b172..8ddca54d3b34 100644 --- a/packages/type-utils/tests/TypeOrValueSpecifier.test.ts +++ b/packages/type-utils/tests/TypeOrValueSpecifier.test.ts @@ -196,18 +196,18 @@ describe('TypeOrValueSpecifier', () => { ], [ 'interface Foo {prop: string}; type Test = Foo;', - { from: 'file', name: 'Foo', path: 'file.ts' }, + { from: 'file', name: 'Foo', path: 'tests/fixtures/file.ts' }, ], [ 'type Foo = {prop: string}; type Test = Foo;', - { from: 'file', name: 'Foo', path: 'file.ts' }, + { from: 'file', name: 'Foo', path: 'tests/fixtures/file.ts' }, ], [ 'interface Foo {prop: string}; type Test = Foo;', { from: 'file', name: 'Foo', - path: './////file.ts', + path: 'tests/../tests/fixtures/////file.ts', }, ], [ @@ -215,7 +215,7 @@ describe('TypeOrValueSpecifier', () => { { from: 'file', name: 'Foo', - path: './////file.ts', + path: 'tests/../tests/fixtures/////file.ts', }, ], [ @@ -223,7 +223,7 @@ describe('TypeOrValueSpecifier', () => { { from: 'file', name: ['Foo', 'Bar'], - path: 'file.ts', + path: 'tests/fixtures/file.ts', }, ], [ @@ -231,7 +231,7 @@ describe('TypeOrValueSpecifier', () => { { from: 'file', name: ['Foo', 'Bar'], - path: 'file.ts', + path: 'tests/fixtures/file.ts', }, ], ])('matches a matching file specifier: %s', runTestPositive); @@ -247,14 +247,14 @@ describe('TypeOrValueSpecifier', () => { ], [ 'interface Foo {prop: string}; type Test = Foo;', - { from: 'file', name: 'Foo', path: 'wrong-file.ts' }, + { from: 'file', name: 'Foo', path: 'tests/fixtures/wrong-file.ts' }, ], [ 'interface Foo {prop: string}; type Test = Foo;', { from: 'file', name: ['Foo', 'Bar'], - path: 'wrong-file.ts', + path: 'tests/fixtures/wrong-file.ts', }, ], ])("doesn't match a mismatched file specifier: %s", runTestNegative); @@ -399,14 +399,14 @@ describe('TypeOrValueSpecifier', () => { ['type Test = RegExp;', { from: 'file', name: ['RegExp', 'BigInt'] }], [ 'type Test = RegExp;', - { from: 'file', name: 'RegExp', path: 'file.ts' }, + { from: 'file', name: 'RegExp', path: 'tests/fixtures/file.ts' }, ], [ 'type Test = RegExp;', { from: 'file', name: ['RegExp', 'BigInt'], - path: 'file.ts', + path: 'tests/fixtures/file.ts', }, ], [