Skip to content

Improve test coverage#35

Open
mirekys wants to merge 1 commit intoindico:masterfrom
oarepo:contribution-react-19-migration
Open

Improve test coverage#35
mirekys wants to merge 1 commit intoindico:masterfrom
oarepo:contribution-react-19-migration

Conversation

@mirekys
Copy link
Copy Markdown

@mirekys mirekys commented Feb 6, 2026

  • Adds @babel/plugin-transform-runtime to support async/await in tests
  • Adds test:coverage npm script
  • Adds dev module tests, improves overridable & store coverage

Coverage report:

----------------|---------|----------|---------|---------|------------------------------------
File            | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                  
----------------|---------|----------|---------|---------|------------------------------------
All files       |   76.52 |    65.22 |   72.41 |   77.68 |                                    
 dev.js         |   61.43 |    38.46 |   57.89 |   62.69 | 99-138,158-164,174-175,180-182,187 
 index.js       |       0 |        0 |       0 |       0 |                                    
 overridable.js |     100 |      100 |     100 |     100 |                                    
 store.js       |     100 |      100 |     100 |     100 |                                    
----------------|---------|----------|---------|---------|------------------------------------

Test Suites: 3 passed, 3 total
Tests:       25 passed, 25 total

Only Dev mode overridable IDTag-related code remains untested - not directly exposed, rendered via portal (may be hard to test properly with enzyme)

Comment thread src/dev.edge.test.js Outdated
Comment thread src/index.test.js Outdated
@mirekys mirekys marked this pull request as draft February 6, 2026 17:03
@mirekys mirekys force-pushed the contribution-react-19-migration branch from ac77120 to 8f3a824 Compare February 9, 2026 12:12
@mirekys mirekys marked this pull request as ready for review February 9, 2026 12:24
@mirekys mirekys force-pushed the contribution-react-19-migration branch from 8f3a824 to eeb026b Compare February 9, 2026 13:25
Comment thread package.json Outdated
* Adds @babel/plugin-transform-runtime to support async/await in tests
* Adds test:coverage npm script
* Adds dev module tests, improves overridable & store coverage
@mirekys mirekys force-pushed the contribution-react-19-migration branch from eeb026b to 2d9d82e Compare February 9, 2026 14:29
@mirekys
Copy link
Copy Markdown
Author

mirekys commented Feb 10, 2026

I could also do migration to RTL, if you'd agree on this one #14 (comment), and then try update ci to setup & run tests for newer react versions

This was referenced Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants