@mars-stack/core 6.0.2 → 6.0.4
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.
|
@@ -22,3 +22,9 @@ alwaysApply: false
|
|
|
22
22
|
- Assert both the response body and status code.
|
|
23
23
|
- Test error paths: invalid input (Zod), unauthorized, not found, database errors.
|
|
24
24
|
- Unit tests MUST NOT depend on external services (database, Redis, email). Mock everything.
|
|
25
|
+
|
|
26
|
+
## E2E (Playwright) — extending features
|
|
27
|
+
|
|
28
|
+
End-to-end specs live in **`e2e/`** (`yarn test:e2e`). When you add or materially change **user-facing** behaviour (pages, flows, CLI-generated features), extend **`e2e/*.spec.ts`** so at least one **stable happy path** is covered. Prefer role/label selectors; avoid sleep-only assertions.
|
|
29
|
+
|
|
30
|
+
**Mars monorepo:** The template’s catalog and CLI-wide CI expectations are defined in **`docs/design-docs/scaffold-testing-strategy.md`** (Decision 7) and ticket **MARS-041**; update **`template/e2e/`** and its README when you change generators or template routes.
|
|
@@ -184,7 +184,9 @@ switch (event.type) {
|
|
|
184
184
|
data: {
|
|
185
185
|
status: sub.status,
|
|
186
186
|
stripePriceId: sub.items.data[0]?.price.id,
|
|
187
|
-
currentPeriodEnd: new Date(
|
|
187
|
+
currentPeriodEnd: new Date(
|
|
188
|
+
(sub.items.data[0]?.current_period_end ?? sub.billing_cycle_anchor) * 1000,
|
|
189
|
+
),
|
|
188
190
|
cancelAtPeriodEnd: sub.cancel_at_period_end,
|
|
189
191
|
},
|
|
190
192
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mars-stack/core",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -183,27 +183,27 @@
|
|
|
183
183
|
},
|
|
184
184
|
"dependencies": {
|
|
185
185
|
"bcryptjs": "^3.0.3",
|
|
186
|
-
"jose": "^6.2.
|
|
186
|
+
"jose": "^6.2.2",
|
|
187
187
|
"pino": "^9.6.0",
|
|
188
188
|
"zod": "^4.3.6"
|
|
189
189
|
},
|
|
190
190
|
"devDependencies": {
|
|
191
|
-
"@aws-sdk/client-s3": "^3.
|
|
192
|
-
"@aws-sdk/s3-request-presigner": "^3.
|
|
191
|
+
"@aws-sdk/client-s3": "^3.1017.0",
|
|
192
|
+
"@aws-sdk/s3-request-presigner": "^3.1017.0",
|
|
193
193
|
"@testing-library/react": "^16.0.0",
|
|
194
194
|
"@types/bcryptjs": "^3.0.0",
|
|
195
195
|
"@types/fs-extra": "^11.0.4",
|
|
196
196
|
"@types/react": "^19.0.0",
|
|
197
197
|
"@upstash/ratelimit": "^2.0.0",
|
|
198
|
-
"@upstash/redis": "^1.
|
|
198
|
+
"@upstash/redis": "^1.37.0",
|
|
199
199
|
"@vercel/blob": "^2.3.1",
|
|
200
200
|
"fs-extra": "^11.3.4",
|
|
201
|
-
"next": "^16.1
|
|
201
|
+
"next": "^16.2.1",
|
|
202
202
|
"react": "^19.0.0",
|
|
203
|
-
"resend": "^6.9.
|
|
204
|
-
"stripe": "^
|
|
203
|
+
"resend": "^6.9.4",
|
|
204
|
+
"stripe": "^20.4.1",
|
|
205
205
|
"tsup": "^8.0.0",
|
|
206
206
|
"typescript": "^5.7.0",
|
|
207
|
-
"vitest": "^4.1.
|
|
207
|
+
"vitest": "^4.1.1"
|
|
208
208
|
}
|
|
209
209
|
}
|