We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac2f1dd commit 88a545aCopy full SHA for 88a545a
src/goods.ts
@@ -27,10 +27,10 @@ import {
27
export { default as path } from 'node:path'
28
export * as os from 'node:os'
29
30
-export let argv = minimist(process.argv.slice(2))
+export const argv = minimist(process.argv.slice(2))
31
export function updateArgv(args: string[]) {
32
- argv = minimist(args)
33
- ;(global as any).argv = argv
+ for (var k in argv) delete argv[k]
+ Object.assign(argv, minimist(args))
34
}
35
36
export function sleep(duration: Duration) {
test/goods.test.js
@@ -14,7 +14,7 @@
14
15
import chalk from 'chalk'
16
import assert from 'node:assert'
17
-import { test, describe, beforeEach } from 'node:test'
+import { test, describe } from 'node:test'
18
import '../build/globals.js'
19
20
describe('goods', () => {
0 commit comments