Skip to content

uvu with svelte #122

@jerrythomas

Description

@jerrythomas

Uvu makes it painless to test ESM modules without the -r esm.
However, the svelte example still suggests using -r esm and -r tests/setup/register.js.

Whe I try to use it I get the error below

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module
require() of ES modules is not supported.

Is there a way that svelte testing can be done without the require?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions