Skip to content

Testing AssemblyScript function with Jest results in error "TextDecoder is not defined" #1608

@Odisseuss

Description

@Odisseuss

Hello. I am not really sure if this is the right place to ask this question, but here I go.

I am trying to test an AssemblyScript function, but when running my Jest tests, I get the following error which seems to have something to do with the AssemblyScript loader.

image

Did anyone manage to test his/her code with Jest?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions