Skip to content

Commit 81babcc

Browse files
1 parent 0d6232a commit 81babcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/spectral/ipa/__tests__/metrics/metricCollection.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { beforeEach, describe, expect, it, jest } from '@jest/globals';
55
import { runMetricCollectionJob } from '../../metrics/metricCollection.js';
66
import { Spectral } from '@stoplight/spectral-core';
77

8-
const dirname = path.dirname(fileURLToPath(require('url').pathToFileURL(__filename).toString()));
8+
const dirname = __dirname;
99
const expectedResultFilePath = path.join(dirname, 'data', 'expected-metric-results.json');
1010

1111
// Testing the metrics collection with test data in folder 'data'

0 commit comments

Comments
 (0)