Skip to content

Commit d08be43

Browse files
committed
test: use pkg typings entries for dts test
relates google#779
1 parent 00d1b74 commit d08be43

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

test-d/core.test-d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import assert from 'node:assert'
1616
import { Readable, Writable } from 'node:stream'
1717
import { expectType } from 'tsd'
18-
import { $, ProcessPromise, ProcessOutput, within } from '../src/core.js'
18+
import { $, ProcessPromise, ProcessOutput, within } from 'zx'
1919

2020
let p = $`cmd`
2121
assert(p instanceof ProcessPromise)

test-d/experimental.test-d.ts

-15
This file was deleted.

test-d/globals.test-d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
import assert from 'node:assert'
1616
import { expectType } from 'tsd'
17-
import '../src/globals.js'
17+
import 'zx/globals'
18+
19+
glob
1820

1921
let p = $`cmd`
2022
assert(p instanceof ProcessPromise)

test-d/goods.test-d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
// limitations under the License.
1414

1515
import { expectType } from 'tsd'
16-
import { $ } from '../src/core.js'
17-
import { echo, sleep, spinner, retry, expBackoff } from '../src/goods.js'
16+
import { $, echo, sleep, spinner, retry, expBackoff } from 'zx'
1817

1918
echo`Date is ${await $`date`}`
2019
echo('Hello, world!')

0 commit comments

Comments
 (0)