@accounter/server 0.0.9-alpha-20251209104241-0b63b5609688348798c300b5ba636e03a9d0e991 → 0.0.9-alpha-20251209105722-e9d052e567477663c8f206afbc7984508eb98098

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @accounter/server
2
2
 
3
- ## 0.0.9-alpha-20251209104241-0b63b5609688348798c300b5ba636e03a9d0e991
3
+ ## 0.0.9-alpha-20251209105722-e9d052e567477663c8f206afbc7984508eb98098
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -122,6 +122,18 @@
122
122
  - **Documentation**: Extensive documentation has been added, including JSDoc examples, idempotency
123
123
  semantics, security warnings, and thread safety considerations.
124
124
 
125
+ - [#2788](https://github.com/Urigo/accounter-fullstack/pull/2788)
126
+ [`a1d01b5`](https://github.com/Urigo/accounter-fullstack/commit/a1d01b5273940299754176f46e1e77763f143842)
127
+ Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Test Suite Split**: The project's test
128
+ suite has been formally split into distinct 'unit' and 'integration' test projects using Vitest,
129
+ enhancing organization and execution efficiency.
130
+ - **New Test Commands**: New `yarn` commands have been introduced: `yarn test` for unit tests,
131
+ `yarn test:integration` for both unit and integration tests, and `yarn test:all` for running all
132
+ suites.
133
+ - **Updated Documentation**: Both the root `README.md` and `packages/server/README.md` have been
134
+ updated with comprehensive documentation on the new test suite structure, how to run tests, and
135
+ prerequisites for integration tests.
136
+
125
137
  - [#2751](https://github.com/Urigo/accounter-fullstack/pull/2751)
126
138
  [`77ad870`](https://github.com/Urigo/accounter-fullstack/commit/77ad8705cfadfab6a4e182c80937b8d96467098a)
127
139
  Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Centralized DB Pool Management**: The
@@ -172,10 +184,10 @@
172
184
  [`ef68321`](https://github.com/Urigo/accounter-fullstack/commit/ef68321608d60a7208e82a2c413f27beb502e3cc),
173
185
  [`ef68321`](https://github.com/Urigo/accounter-fullstack/commit/ef68321608d60a7208e82a2c413f27beb502e3cc),
174
186
  [`ef68321`](https://github.com/Urigo/accounter-fullstack/commit/ef68321608d60a7208e82a2c413f27beb502e3cc)]:
175
- - @accounter/green-invoice-graphql@0.8.3-alpha-20251209104241-0b63b5609688348798c300b5ba636e03a9d0e991
176
- - @accounter/pcn874-generator@0.6.4-alpha-20251209104241-0b63b5609688348798c300b5ba636e03a9d0e991
177
- - @accounter/shaam-uniform-format-generator@0.2.3-alpha-20251209104241-0b63b5609688348798c300b5ba636e03a9d0e991
178
- - @accounter/shaam6111-generator@0.1.5-alpha-20251209104241-0b63b5609688348798c300b5ba636e03a9d0e991
187
+ - @accounter/green-invoice-graphql@0.8.3-alpha-20251209105722-e9d052e567477663c8f206afbc7984508eb98098
188
+ - @accounter/pcn874-generator@0.6.4-alpha-20251209105722-e9d052e567477663c8f206afbc7984508eb98098
189
+ - @accounter/shaam-uniform-format-generator@0.2.3-alpha-20251209105722-e9d052e567477663c8f206afbc7984508eb98098
190
+ - @accounter/shaam6111-generator@0.1.5-alpha-20251209105722-e9d052e567477663c8f206afbc7984508eb98098
179
191
 
180
192
  ## 0.0.8
181
193
 
package/README.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @accounter-helper/server
2
2
 
3
+ ## Test Suites
4
+
5
+ The test suite is split into two Vitest projects for efficiency and isolation:
6
+
7
+ ### 1. Unit Tests (`yarn test`)
8
+
9
+ Fast, isolated tests with no external dependencies. Runs by default and excludes DB-backed tests and
10
+ demo fixtures.
11
+
12
+ ### 2. Integration Tests (`yarn test:integration`)
13
+
14
+ DB-backed tests including:
15
+
16
+ - Server helpers and test harness (`packages/server/src/__tests__/**`)
17
+ - Module integration tests (`packages/server/src/modules/**/*.integration.test.ts`)
18
+
19
+ **Prerequisites:**
20
+
21
+ - PostgreSQL running
22
+ - Migrations applied (see below)
23
+
24
+ ### Running Tests
25
+
26
+ ```bash
27
+ # Fast unit tests only (default)
28
+ yarn test
29
+
30
+ # Unit + integration tests (for PRs)
31
+ yarn test:integration
32
+
33
+ # All suites (for main branch merges)
34
+ yarn test:all
35
+ ```
36
+
3
37
  ## Test DB Harness
4
38
 
5
39
  This package includes a Vitest-friendly PostgreSQL test harness with:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@accounter/server",
3
- "version": "0.0.9-alpha-20251209104241-0b63b5609688348798c300b5ba636e03a9d0e991",
3
+ "version": "0.0.9-alpha-20251209105722-e9d052e567477663c8f206afbc7984508eb98098",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "date-fns": "4.1.0",
42
42
  "dotenv": "17.2.3",
43
43
  "dotenv-cli": "11.0.0",
44
- "googleapis": "167.0.0",
44
+ "googleapis": "166.0.0",
45
45
  "graphql": "16.12.0",
46
46
  "graphql-modules": "3.0.0",
47
47
  "graphql-scalars": "1.25.0",
package/.env.test DELETED
@@ -1,13 +0,0 @@
1
- ; Database variables
2
- POSTGRES_USER=postgres
3
- POSTGRES_PASSWORD=postgres
4
- POSTGRES_HOST=localhost
5
- POSTGRES_PORT=5432
6
- POSTGRES_DB=accounter
7
- POSTGRES_SSL='0'
8
-
9
- ; Local entities (Auto-generated if using the seed script on setup)
10
- DEFAULT_FINANCIAL_ENTITY_ID=00000000-0000-0000-0000-000000000000
11
-
12
- ; Mesh dev (Richer logs on the dev environment)
13
- DEBUG=1