Skip to content

Conversation

maryia-deriv
Copy link
Contributor

@maryia-deriv maryia-deriv commented Dec 21, 2023

Changes:

To add test coverage for files in Stores/Modules/Trading/Actions directory of Trader package:

  • To write unit test for src/Stores/Modules/Trading/Actions/contract-type.ts file
  • To write unit test for src/Stores/Modules/Trading/Actions/duration.ts file
    + fix a bug in duration.ts
  • To write unit test for src/Stores/Modules/Trading/Actions/purchase.ts file
  • To write unit test for src/Stores/Modules/Trading/Actions/start-date.ts file
  • To write unit test for src/Stores/Modules/Trading/Actions/symbol.ts file

Screenshots:

Screenshot 2023-12-26 at 3 00 22 AM

@boring-cyborg boring-cyborg bot added the Trader label Dec 21, 2023
Copy link

vercel bot commented Dec 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Jan 25, 2024 2:24pm

Copy link
Contributor

github-actions bot commented Dec 21, 2023

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/12459](https://github.com/binary-com/deriv-app/pull/12459)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-maryia-deriv-maryia-webrel-29test-act-8fb774.binary.sx?qa_server=red.derivws.com&app_id=24182
    - **Original**: https://deriv-app-git-fork-maryia-deriv-maryia-webrel-29test-act-8fb774.binary.sx
- **App ID**: `24182`

@coveralls
Copy link

coveralls commented Dec 21, 2023

Coverage Status

coverage: 34.905% (+0.03%) from 34.88%
when pulling 3b5a51d on maryia-deriv:maryia/WEBREL-29/test-actions-files
into 5a0214d on binary-com:master.

Copy link
Contributor

github-actions bot commented Dec 21, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 21
🟧 Accessibility 88
🟢 Best practices 92
🟢 SEO 92
🟧 PWA 80

Lighthouse ran with https://deriv-app-git-fork-maryia-deriv-maryia-webrel-29test-act-8fb774.binary.sx/

Copy link
Contributor

❌ Smoke test run (1) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (2) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (1) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (2) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (2) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (1) failed. See logs for details: Visit Action

Copy link
Contributor

❌ Smoke test run (1) failed. See logs for details: Visit Action

barrier: barrier_intraday,
barrier_choices: barrier_choices_intraday,
contract_display: 'Vanilla Long Put',
contract_type: 'VANILLALONGPUT',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, if you are using TRADE_TYPES.VANILLA.CALL below, it can be also applied here and on lines 90,79, 68, 54
Please, ignore if not relevant

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kate-deriv unfortunately, using external variables is prohibited inside jest.mocks

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry I didn't know

barrier: barrier_intraday,
barrier_choices: barrier_choices_intraday,
contract_display: 'Vanilla Long Put',
contract_type: 'VANILLALONGPUT',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, same in this file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
4.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

Generating Lighthouse report...

@balakrishna-deriv balakrishna-deriv merged commit d8f584d into deriv-com:master Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants