Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Testing instructions

- Follow the Arrange, Act, Assert structure when writing unit tests.
- When writing unit tests, create individual unit tests that cover each logical branching in the code.
- For the happy path, can we have a single unit test where all the top level if conditions are executed? This might help with reducing the number of total unit tests created and still give same test coverage.
- For the tests for edge cases do not create separate describe blocks, keep the hierarchy flat.
- For the tests for edge cases, do not skip assertions, its still worth adding all assertions similar to the happy paths tests.
- Use only jest for writing test cases and refer existing unit test under the /src folder.
- Do not create code comments for any changes.

62 changes: 42 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"/oclif.manifest.json"
],
"dependencies": {
"@apollo/client": "^3.11.8",
"@apollo/client": "^3.14.0",
"@contentstack/cli-command": "^1.4.0",
"@contentstack/cli-utilities": "^1.12.0",
"@oclif/core": "^4.2.7",
Expand All @@ -37,7 +37,7 @@
"cross-fetch": "^4.1.0",
"dotenv": "^16.4.7",
"express": "^4.21.1",
"form-data": "^4.0.0",
"form-data": "4.0.4",
"graphql": "^16.9.0",
"ini": "^3.0.1",
"lodash": "^4.17.21",
Expand Down Expand Up @@ -106,6 +106,10 @@
"test:jest:coverage": "jest --coverage",
"prepare": "husky"
},
"overrides": {
"axios": "~1.10.0",
"form-data": "4.0.4"
},
"engines": {
"node": ">=14.0.0"
},
Expand Down
Loading