diff options
| author | ST-DDT <[email protected]> | 2023-03-31 13:02:45 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-31 13:02:45 +0200 |
| commit | a036b8414bc03cb648f7868972dc2a2390e55eb3 (patch) | |
| tree | f0cca054f8088f1887ef5475ed0690edce68f457 /test/scripts | |
| parent | b9d0fed5c0143a54bf82ee1737b30d9272de8de3 (diff) | |
| download | faker-a036b8414bc03cb648f7868972dc2a2390e55eb3.tar.xz faker-a036b8414bc03cb648f7868972dc2a2390e55eb3.zip | |
test: replace deprecated method call (#1999)
Diffstat (limited to 'test/scripts')
| -rw-r--r-- | test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index 602864b1..410bffc2 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -1,4 +1,4 @@ -import { mkdirSync, rmdirSync, writeFileSync } from 'node:fs'; +import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; import { resolve } from 'node:path'; import validator from 'validator'; import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; @@ -26,7 +26,7 @@ const tempDir = resolve(__dirname, 'temp'); afterAll(() => { // Remove temp folder - rmdirSync(tempDir, { recursive: true }); + rmSync(tempDir, { recursive: true }); }); describe('verify JSDoc tags', () => { |
