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

Current token.test.ts and videoGeneration.test.ts are throwing errors #464

Closed
ai16z-demirix opened this issue Nov 20, 2024 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@ai16z-demirix
Copy link
Contributor

ai16z-demirix commented Nov 20, 2024

Describe the bug

Current token.test.ts and videoGeneration.test.ts are throwing errors:

FAIL src/tests/videoGeneration.test.ts [ src/tests/videoGeneration.test.ts ]
Error: [vitest] No "default" export is defined on the "fs" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:

FAIL src/tests/token.test.ts [ src/tests/token.test.ts ]
Error: Failed to load url @ai16z/adapter-sqlite (resolved id: @ai16z/adapter-sqlite) in eliza/packages/core/src/test_resources/createRuntime.ts. Does the file exist?
❯ loadAndTransform ../../node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51920:17

To Reproduce

Navigate to packages/core and run pnpm test.

Expected behavior

Tests should run without errors and provide valid output.
Screenshots

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant