https://github.com/mikro-orm/reproduction
Base for issue reproductions
https://github.com/mikro-orm/reproduction
Last synced: 2 months ago
JSON representation
Base for issue reproductions
- Host: GitHub
- URL: https://github.com/mikro-orm/reproduction
- Owner: mikro-orm
- License: mit
- Created: 2023-11-18T08:54:09.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-19T09:03:02.000Z (over 1 year ago)
- Last Synced: 2025-02-07T20:01:39.497Z (11 months ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 5
- Watchers: 2
- Forks: 85
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MikroORM reproduction example
This repository serves as a base reproduction example, it contains basic setup with MikroORM 6 with SQLite driver and jest. This is what the main repository is using, and therefore allows for a simple integration to the codebase.
## Few hints for creating your own reproductions
- Focus on reproducing one problem at a time.
- Set up the data, the test needs to be **self-contained**.
- Don't use the CLI, do everything programmatically as part of the test.
- Remove everything unrelated, keep things as simple as possible.
- Duplication in tests is fine, better than complex abstractions.
- Comments are fine, asserts are better!
- If the problem is not driver specific, use in-memory SQLite database.