Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work with test runners other than Vitest #9

Open
itsMapleLeaf opened this issue Jun 6, 2024 · 1 comment
Open

Work with test runners other than Vitest #9

itsMapleLeaf opened this issue Jun 6, 2024 · 1 comment

Comments

@itsMapleLeaf
Copy link

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)
@xixixao
Copy link
Contributor

xixixao commented Jun 10, 2024

Indeed. I think we're OK with this for now, but if you can get another runner working (and supporting everything vitest currently supports), we'd look at a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants