We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6549e9 commit a17ca7cCopy full SHA for a17ca7c
src/bin/typescript-demo-lib.ts
@@ -7,6 +7,7 @@ import { v4 as uuidv4 } from 'uuid';
7
import testWorkers from '../lib/workers/test-workers';
8
import testLevel from '../lib/test-level';
9
import testUtpNative from '../lib/test-utp-native';
10
+import * as os from 'os';
11
12
async function main(argv = process.argv): Promise<number> {
13
// Print out command-line arguments
@@ -28,7 +29,7 @@ async function main(argv = process.argv): Promise<number> {
28
29
process.stdout.write(nums.num1 + ' + ' + nums.num2 + ' = ' + sum + '\n');
30
31
// Testing native modules
- const dir = argv[2] ?? '/tmp';
32
+ const dir = argv[2] ?? os.tmpdir();
33
await testLevel(dir);
34
await testWorkers();
35
await testUtpNative();
0 commit comments