File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 5151 " dist"
5252 ],
5353 "engines" : {
54- "node" : " >=20 "
54+ "node" : " >=24.4 "
5555 },
5656 "scripts" : {
5757 "check" : " tsc --noEmit" ,
Original file line number Diff line number Diff line change 1+ import { expect , test } from "vitest" ;
2+ import { tempDir } from "./temp-dir.ts" ;
3+
4+ test ( "tempDir" , async ( ) => {
5+ await using dir = await tempDir ( ) ;
6+ expect ( dir ) . toBeDefined ( ) ;
7+ expect ( dir . path ) . toBeDefined ( ) ;
8+ } ) ;
Original file line number Diff line number Diff line change 1+ import { mkdtempDisposable , realpath } from "node:fs/promises" ;
2+ import { tmpdir } from "node:os" ;
3+ import { join } from "node:path" ;
4+
5+ export async function tempDir ( ) {
6+ const realTmpDir = await realpath ( tmpdir ( ) ) ;
7+ return await mkdtempDisposable ( join ( realTmpDir , "jsdocs-io-extractor-" ) ) ;
8+ }
You can’t perform that action at this time.
0 commit comments