fix(worker): S2 proactive tips logic, i18n parity, hardened test DB reset
- processProactiveTips now iterates all expiring items sorted by urgency and emits the first candidate with a recipe that clears 7-day dedup. - Add pt-PT proactive-tip templates; remove en-GB duplicate; parity test asserts against shared-types SUPPORTED_LANGUAGE_TAGS. - Serialize DB test setup via turbo dependencies; seed truncates only *_test DBs, guarded by both --test flag and DB name suffix.
This commit is contained in:
+1
-16
@@ -17,22 +17,7 @@
|
||||
"env": ["TEST_DATABASE_URL"]
|
||||
},
|
||||
"test": {
|
||||
"dependsOn": ["^typecheck"],
|
||||
"outputs": [],
|
||||
"env": ["TEST_DATABASE_URL"]
|
||||
},
|
||||
"@app/api#test": {
|
||||
"dependsOn": ["@app/database#db:test-setup"],
|
||||
"outputs": [],
|
||||
"env": ["TEST_DATABASE_URL"]
|
||||
},
|
||||
"@app/database#test": {
|
||||
"dependsOn": ["@app/database#db:test-setup"],
|
||||
"outputs": [],
|
||||
"env": ["TEST_DATABASE_URL"]
|
||||
},
|
||||
"@app/worker#test": {
|
||||
"dependsOn": ["@app/database#db:test-setup"],
|
||||
"dependsOn": ["^typecheck", "@app/database#db:test-setup"],
|
||||
"outputs": [],
|
||||
"env": ["TEST_DATABASE_URL"]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user