Skip to content

Configure E2E tests with SQLite in-memory and integrate into CI - #80

Merged
buzz-code merged 3 commits into
mainfrom
copilot/fix-e2e-tests-and-github-actions
Feb 12, 2026
Merged

buzz-code merged 3 commits into
mainfrom
copilot/fix-e2e-tests-and-github-actions

Conversation

Copilot AI commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor

E2E tests were not setting NODE_ENV=test, causing the application to attempt MySQL connections instead of using the existing SQLite in-memory configuration.

Changes

Test Configuration

  • Created server/test/setup-e2e.ts to set NODE_ENV=test and JWT_SECRET before test execution
  • Updated server/test/jest-e2e.json to load setup file via setupFiles
  • Added test case to explicitly verify SQLite in-memory database initialization

CI Integration

  • Added yarn test:e2e step to .github/workflows/run-tests.yml server-tests job

Technical Context

The database configuration in server/shared/config/database.config.ts already supported test mode:

export const databaseConfig: DataSourceOptions =
    process.env.NODE_ENV === 'test' ? testDatabaseConfig : productionDatabaseConfig;

The SQLite configuration uses :memory: (RAM-only, no disk I/O) with dropSchema: true for test isolation.

Original prompt

This section details on the original issue you should resolve

<issue_title>E2E Tests</issue_title>
<issue_description>yarn test:e2e should pass, and should be added to github actions merge server tests
first task is to make e2e pass, currently it failes with strage error
you should understand and fix the issue, you can try to create new folder and copy only relevant parts of the code to test there, in order to understand root cause
second task is to add e2e tests to github actions on merge after they pass

e2e tests must use sqlite db (or any in-memory alternatives), and not any on-disk options

</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 12, 2026 17:43
Co-authored-by: buzz-code <72219643+buzz-code@users.noreply.github.com>
Co-authored-by: buzz-code <72219643+buzz-code@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix E2E tests and add to GitHub Actions Configure E2E tests with SQLite in-memory and integrate into CI Feb 12, 2026
Copilot AI requested a review from buzz-code February 12, 2026 17:49
@buzz-code
buzz-code marked this pull request as ready for review February 12, 2026 18:20
@buzz-code
buzz-code merged commit ccdc355 into main Feb 12, 2026
3 checks 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.

E2E Tests

2 participants