pippellia on Nostr: sure, what what exactly? If you want to test the query logic, unit tests are probably ...
sure, what what exactly?
If you want to test the query logic, unit tests are probably better since dB implement are already super tested on their own.
If you want to test the event generation logic, you don't need to test the db part.
If you want to test e2e, the you should probably test with production data and setup anyway
Published at
2025-04-01 22:09:58Event JSON
{
"id": "c033459b13fbe92528528054457f16bddec70e083af8afcf83472b717b0f5be9",
"pubkey": "f683e87035f7ad4f44e0b98cfbd9537e16455a92cd38cefc4cb31db7557f5ef2",
"created_at": 1743545398,
"kind": 1,
"tags": [
[
"p",
"dd664d5e4016433a8cd69f005ae1480804351789b59de5af06276de65633d319"
],
[
"p",
"f683e87035f7ad4f44e0b98cfbd9537e16455a92cd38cefc4cb31db7557f5ef2"
],
[
"p",
"fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1",
"wss://theforest.nostr1.com/"
],
[
"e",
"2d5fc4abfcf64e5d973cff57deb161eed4a13f85bbf3baa31bcb2695be28de55",
"wss://theforest.nostr1.com/",
"reply",
"fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1"
],
[
"e",
"5d6524e6fc4d1a88e8fbd4c142e60ee0b74dae5a97089fa6571b35f0cbdd20db",
"wss://theforest.nostr1.com/",
"root",
"fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1"
]
],
"content": "sure, what what exactly?\n\nIf you want to test the query logic, unit tests are probably better since dB implement are already super tested on their own.\n\nIf you want to test the event generation logic, you don't need to test the db part.\n\nIf you want to test e2e, the you should probably test with production data and setup anyway",
"sig": "a37a7c775ccf1cc8c801921f642c68a0172a30841b21b4741fc3957e17b94270dc0ca0f420a180b90eb4ddf274c708487f8cf34fc6075acde6a0fc374e9b1e7f"
}