Commit b619919
chore: use nodenext module resolution, update CI to Node 22 (#118)
* chore: use nodenext module resolution, update CI to Node 22
- Switch tsconfig module/moduleResolution to nodenext (fixes type
resolution for @mikro-orm/core subpath exports like ./schema)
- Update CI matrix to Node 22 only (MikroORM v7 requires >= 22.17.0)
- Update lockfile for v7 dependencies
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: migrate from jest to vitest with swc, add Node 24 to CI
- Replace jest/ts-jest with vitest + unplugin-swc
- Add @swc-node/register and @swc/core
- Remove @types/jest, ts-jest, ts-loader, tslint, webpack deps
- Add Node 24 to CI matrix
- Update test scripts to use vitest
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: fix vitest config for legacy decorators
- Enable legacyDecorator + decoratorMetadata in SWC config
- Set ReflectMetadataProvider explicitly (no longer default in v7)
- Add reflect-metadata as vitest setup file
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: use dropDb in book test to match author test
With isolate: false, both test suites share the process. The author
test drops the DB via refresh({ dropDb: true }), so the book test
needs to do the same to recreate it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: revert unnecessary dropDb in schema.refresh()
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: use fileParallelism instead of isolate: false
Each test file creates its own MikroORM instance against the same DB,
so they need isolated processes (like jest's default behavior) but
sequential execution to avoid conflicts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: use isolate: false instead of fileParallelism: false
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: use tmpfs for MySQL data and wait for healthcheck in CI
Use tmpfs instead of named volume to ensure fresh MySQL state on every
run. Add healthcheck and --wait to ensure MySQL is ready before tests.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: pre-create test database in MySQL docker service
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: use fileParallelism: false for sequential test execution
Tests share the same database, so they need to run sequentially to
avoid conflicts. Unlike the realworld example which uses mocked
services, these tests use a real MySQL database.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent a40f0ce commit b619919
File tree
7 files changed
+2325
-5454
lines changed- .github/workflows
- src
7 files changed
+2325
-5454
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
| |||
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| 36 | + | |
| 37 | + | |
39 | 38 | | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | | - | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | 44 | | |
48 | | - | |
49 | | - | |
50 | 45 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 46 | + | |
| 47 | + | |
69 | 48 | | |
70 | 49 | | |
71 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | | - | |
15 | | - | |
| 13 | + | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments