fix(core-flows,utils,medusa): fix bug where payment collection across orders were getting updated (#8401)

This took embarrassingly long to debug. :|

what:

- fixes a bug where the payment collection of other orders were getting updated
- adds order status to payments section

<img width="1069" alt="Screenshot 2024-08-02 at 08 37 38" src="https://github.com/user-attachments/assets/31776bd3-e6b9-4d23-8be6-f972f7316cf3">
<img width="1072" alt="Screenshot 2024-08-02 at 08 37 48" src="https://github.com/user-attachments/assets/38cdd8a1-9f31-4920-91bf-a3554e298960">
This commit is contained in:
Riqwan Thamir
2024-08-02 08:34:42 +00:00
committed by GitHub
parent 3a068c6b27
commit ce8c90838d
7 changed files with 301 additions and 20 deletions
+11
View File
@@ -4,6 +4,17 @@ module.exports = {
testEnvironment: `node`,
rootDir: "./",
transformIgnorePatterns: ["/dist", "/node_modules/"],
testPathIgnorePatterns: [
`/examples/`,
`/www/`,
`/dist/`,
`/node_modules/`,
`<rootDir>/node_modules/`,
`__tests__/fixtures`,
`__testfixtures__`,
`.cache`,
"__fixtures__",
],
transform: {
"^.+\\.[jt]s$": [
"@swc/jest",