Skip to content

Mocking namespace import function #1993

Answered by sheremet-va
JPtenBerge asked this question in Q&A
Discussion options

You must be logged in to vote

In ESM import * as walkdir always returns an object, so it's impossible to call it. Are you sure you don't want to call default export?

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@dstotijn
Comment options

@sheremet-va
Comment options

@dstotijn
Comment options

@sheremet-va
Comment options

@dstotijn
Comment options

Answer selected by JPtenBerge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants