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

fix: astrodb vite plugin throws in vitest and cannot seed database #11435

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

haivuw
Copy link

@haivuw haivuw commented Jul 9, 2024

Changes

Fixes #11414

import.meta.env is undefined in the virtual module which make it throw and the database is not seeded.

Testing

Tested by linking local @astrojs/db in my other project. Db was seeded ok.

Docs

just a minor bug fix

Copy link

changeset-bot bot commented Jul 9, 2024

🦋 Changeset detected

Latest commit: 305449b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@haivuw
Copy link
Author

haivuw commented Jul 9, 2024

I couldn't run all tests #11441. Though @astrojs/db:test alone passed.

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

Successfully merging this pull request may close these issues.

[AstroDB] getViteConfig throws in Vitest - Cannot read properties of undefined (reading 'ASTRO_DATABASE_FILE')
1 participant