Skip to content

Commit

Permalink
fix: add missing stream exports (resolves #11)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 5, 2022
1 parent e733440 commit a51e893
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtime/node/stream/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ import * as readable from './readable'
import * as writable from './writable'
import * as duplex from './duplex'
import * as transform from './transform'
import * as mock from './mock'

export * from './readable'
export * from './writable'
export * from './duplex'
export * from './transform'
export * from './mock'

export default {
...readable,
...writable,
...duplex,
...transform
...transform,
...mock
}
15 changes: 15 additions & 0 deletions src/runtime/node/stream/mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import mock from '../../mock/proxy'

export const isDisturbed = mock.__createMock__('isDisturbed')
export const isReadable = mock.__createMock__('isReadable')
export const pipeline = mock.__createMock__('pipeline')
export const finished = mock.__createMock__('finished')
export const compose = mock.__createMock__('compose')
export const Stream = mock.__createMock__('Stream')
export const _uint8ArrayToBuffer = mock.__createMock__('_uint8ArrayToBuffer')
export const isErrored = mock.__createMock__('isErrored')
export const PassThrough = mock.__createMock__('PassThrough')
export const addAbortSignal = mock.__createMock__('addAbortSignal')
export const destroy = mock.__createMock__('destroy')
export const promises = mock.__createMock__('promises')
export const _isUint8Array = mock.__createMock__('_isUint8Array')

0 comments on commit a51e893

Please sign in to comment.