Skip to content

Commit 2d84c22

Browse files
committed
Fix hardcoded paths
1 parent 4859c0e commit 2d84c22

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/parser.test.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { traverse } from '../src/parser/transforms.js';
44
import { SourceCode } from 'eslint';
55
import { visitorKeys as tsVisitors } from '@typescript-eslint/visitor-keys';
66
import { visitorKeys as glimmerVisitorKeys } from '@glimmer/syntax';
7+
import path from 'node:path';
78

89
describe('transform', () => {
910
let text, result;
@@ -2931,15 +2932,12 @@ export const NotFound = <template>
29312932

29322933
// Since we can't easily test the actual TypeScript sys modifications directly,
29332934
// we'll test that our file existence checks work correctly
2934-
const testFilePath =
2935-
'/Users/pwagenet/Development/OSS/Ember/ember-eslint-parser/tests/fixtures/api-client.gjs.d.ts';
2935+
const testFilePath = path.join(__dirname, 'fixtures', 'api-client.gjs.d.ts');
29362936
expect(fs.existsSync(testFilePath)).toBe(true);
29372937

29382938
// Test that .gjs.d.ts files exist in our test fixtures
2939-
const gjsDtsPath =
2940-
'/Users/pwagenet/Development/OSS/Ember/ember-eslint-parser/tests/fixtures/api-client.gjs.d.ts';
2941-
const gjsPath =
2942-
'/Users/pwagenet/Development/OSS/Ember/ember-eslint-parser/tests/fixtures/api-client.gjs';
2939+
const gjsDtsPath = path.join(__dirname, 'fixtures', 'api-client.gjs.d.ts');
2940+
const gjsPath = path.join(__dirname, 'fixtures', 'api-client.gjs');
29432941

29442942
expect(fs.existsSync(gjsDtsPath)).toBe(true);
29452943
expect(fs.existsSync(gjsPath)).toBe(true);

0 commit comments

Comments
 (0)