Skip to content

Work with test runners other than Vitest #9

@itsMapleLeaf

Description

@itsMapleLeaf

Due to the use of Vitest-specific APIs, convex-test can't be used with any test runner other than Vitest, such as bun test:

❯ bun test
bun test v1.1.12 (43f0913c)

convex\entities\users.test.ts:
876 | }
877 | function getModuleCache() {
878 |     return global.Convex.modules;
879 | }
880 | function moduleCache(specifiedModules) {
881 |     const modules = specifiedModules ?? import.meta.glob("../../../convex/**/*.*s");
                                              ^
TypeError: import.meta.glob is not a function. (In 'import.meta.glob("../../../convex/**/*.*s")', 'import.meta.glob' is undefined)

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