diff options
| author | ST-DDT <[email protected]> | 2023-11-14 17:28:37 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-14 17:28:37 +0100 |
| commit | 932a87502c4b3ab34edbba6c46f6c9c1c91d5bf3 (patch) | |
| tree | 3956a12a9b2836e5d9404d047b1ec54b2ffef2b7 /test/scripts | |
| parent | 7e3c92e802614ae5e9f621d9e679dfd6f6d63cf1 (diff) | |
| download | faker-932a87502c4b3ab34edbba6c46f6c9c1c91d5bf3.tar.xz faker-932a87502c4b3ab34edbba6c46f6c9c1c91d5bf3.zip | |
infra(unicorn): prefer-module (#2510)
Diffstat (limited to 'test/scripts')
| -rw-r--r-- | test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index b4a9f5ff..29a487a5 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -1,5 +1,6 @@ import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { resolve } from 'node:path'; +import { dirname, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; import type { ReflectionType, SomeType } from 'typedoc'; import validator from 'validator'; import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; @@ -25,7 +26,7 @@ import { loadProjectModules } from './utils'; beforeAll(initMarkdownRenderer); -const tempDir = resolve(__dirname, 'temp'); +const tempDir = resolve(dirname(fileURLToPath(import.meta.url)), 'temp'); afterAll(() => { // Remove temp folder |
