diff options
| author | Shinigami <[email protected]> | 2025-07-04 16:41:26 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-04 14:41:26 +0000 |
| commit | 69a89314fe81038fafc919dfdc03f6d0b4559506 (patch) | |
| tree | 9fd9324e9bb10b05bb34b892d8a18e339a89fb0d /test | |
| parent | 660871ece9a91111fd224b0186dcc02f2a9470ad (diff) | |
| download | faker-69a89314fe81038fafc919dfdc03f6d0b4559506.tar.xz faker-69a89314fe81038fafc919dfdc03f6d0b4559506.zip | |
infra: use import.meta.dirname (#3542)
Diffstat (limited to 'test')
| -rw-r--r-- | test/scripts/apidocs/verify-jsdoc-tags.spec.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/scripts/apidocs/verify-jsdoc-tags.spec.ts b/test/scripts/apidocs/verify-jsdoc-tags.spec.ts index 244741c6..0ffac8e0 100644 --- a/test/scripts/apidocs/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidocs/verify-jsdoc-tags.spec.ts @@ -1,6 +1,5 @@ import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { dirname, resolve } from 'node:path'; -import { fileURLToPath } from 'node:url'; +import { resolve } from 'node:path'; import { isSemVer, isURL } from 'validator'; import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; import { processComponents } from '../../../scripts/apidocs/generate'; @@ -14,7 +13,7 @@ import { getProject } from '../../../scripts/apidocs/project'; // - has valid @see tags // - has proper links in the description -const tempDir = resolve(dirname(fileURLToPath(import.meta.url)), 'temp'); +const tempDir = resolve(import.meta.dirname, 'temp'); const relativeImportPath = `${'../'.repeat(5)}src`; afterAll(() => { |
