feat: Modify the abstract repository upsert to handle subresources as per convention (#6813)

* feat: Modify the abstract repository upsert method to handle subresources correctly

* fix: Preserve the upsertWithResponse order in the response, and return all the data

* fix: Create integration tests folder for mikro orm utils that run against the DB

* fix: Remove many-to-one creation and additional changes based on PR review
This commit is contained in:
Stevche Radevski
2024-03-28 15:28:57 +01:00
committed by GitHub
parent 21156f945d
commit a6562d2a41
9 changed files with 1163 additions and 3 deletions
+2 -1
View File
@@ -43,6 +43,7 @@
"prepublishOnly": "cross-env NODE_ENV=production tsc --build",
"build": "rimraf dist && tsc --build",
"watch": "tsc --build --watch",
"test": "jest --silent --bail --maxWorkers=50% --forceExit"
"test": "jest --silent --bail --maxWorkers=50% --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts",
"test:integration": "jest --silent --bail --maxWorkers=50% --forceExit -- src/**/integration-tests/__tests__/**/*.ts"
}
}