⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

fix: install better-sqlite3 for playwright tests#299

Merged
allison-truhlar merged 3 commits intomainfrom
fix-playwright-in-dev-container
Jan 30, 2026
Merged

fix: install better-sqlite3 for playwright tests#299
allison-truhlar merged 3 commits intomainfrom
fix-playwright-in-dev-container

Conversation

@allison-truhlar
Copy link
Collaborator

@allison-truhlar allison-truhlar commented Jan 20, 2026

This PR fixes the failing Playwright tests in the dev container by adding sqlite3 to the Dockerfile. sqlite3 is used to delete tables in the test database after each test run - tables weren't getting deleted so tests had the incorrect starting state. This PR also improves the error message for when deleting tables fails, to distinguish between errors where the table doesn't exist vs other types of errors.
@krokicki

Base automatically changed from dev-container to main January 23, 2026 16:30
Copy link
Member

@krokicki krokicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it need to be installed as a system dependency? Could it be run using Pixi, or using a Typescript wrapper like https://github.com/WiseLibs/better-sqlite3?

If we can avoid system dependencies it will make things more reproducible outside the container, which is nice to have.

@allison-truhlar
Copy link
Collaborator Author

Does it need to be installed as a system dependency? Could it be run using Pixi, or using a Typescript wrapper like https://github.com/WiseLibs/better-sqlite3?

If we can avoid system dependencies it will make things more reproducible outside the container, which is nice to have.

I made the change to using better-sqlite3 and confirmed all the ui tests now run inside the container.

Copy link
Member

@krokicki krokicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@allison-truhlar allison-truhlar merged commit 2ddd4d3 into main Jan 30, 2026
7 checks passed
@allison-truhlar allison-truhlar deleted the fix-playwright-in-dev-container branch January 30, 2026 16:14
@allison-truhlar allison-truhlar changed the title fix: install sqlite3 in dev container for playwright tests fix: install better-sqlite3 for playwright tests Jan 30, 2026
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.

2 participants