Skip to content

Commit

Permalink
test: use pkg typings entries for dts test
Browse files Browse the repository at this point in the history
relates #779
  • Loading branch information
antongolub committed Apr 15, 2024
1 parent 00d1b74 commit d08be43
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion test-d/core.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import assert from 'node:assert'
import { Readable, Writable } from 'node:stream'
import { expectType } from 'tsd'
import { $, ProcessPromise, ProcessOutput, within } from '../src/core.js'
import { $, ProcessPromise, ProcessOutput, within } from 'zx'

let p = $`cmd`
assert(p instanceof ProcessPromise)
Expand Down
15 changes: 0 additions & 15 deletions test-d/experimental.test-d.ts

This file was deleted.

4 changes: 3 additions & 1 deletion test-d/globals.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

import assert from 'node:assert'
import { expectType } from 'tsd'
import '../src/globals.js'
import 'zx/globals'

glob

let p = $`cmd`
assert(p instanceof ProcessPromise)
Expand Down
3 changes: 1 addition & 2 deletions test-d/goods.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
// limitations under the License.

import { expectType } from 'tsd'
import { $ } from '../src/core.js'
import { echo, sleep, spinner, retry, expBackoff } from '../src/goods.js'
import { $, echo, sleep, spinner, retry, expBackoff } from 'zx'

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

0 comments on commit d08be43

Please sign in to comment.