|
Hi Mikita Siadykh can the jest tests (.test.js + near to component) just be called -test.js and kept near the component, or would that cause a problem? If they need to be called .test.js, I don't see why not. cc Zak Burke and others more in touch to stripes unit testing for a chance to comment.
|
|
Practically speaking, adding a new file-name exclusion is easy, but the reason for doing so (adding Jest tests when BigTest is or de facto standard) deserves a discussion. That discussion started on Slack and we plan to continue it at a #stripes-architecture meeting next week before committing to this change.
|
|
Ok Zak Burke we'll block this then.
|
|
The conclusion after a discussion at #stripes-architecture on 2020-02-13 was that Jest and react-testing-library are worth supporting. So: Yes, let's add .test.js files to SonarCloud's list of files to exclude when calculating it's "coverage of new code" metric.
|
Generated at Thu Feb 08 23:20:43 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.