Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve test coverage after migrating ts project #406

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

cyjake
Copy link
Owner

@cyjake cyjake commented Nov 7, 2023

att

@@ -5,7 +5,7 @@ const path = require('path');
const sinon = require('sinon');
const SqlString = require('sqlstring');

const { connect, raw, Bone, disconnect, Raw, SqliteDriver } = require('../..');
const { connect, raw, Bone, disconnect, Raw, SqliteDriver } = require('../../src');
Copy link
Owner Author

@cyjake cyjake Nov 7, 2023

Choose a reason for hiding this comment

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

没搞懂怎么让 nyc 支持 lib + source map 这种形式的覆盖率统计,改成测试代码全部使用 ts-node 运行,感觉也还可以

Copy link

codecov bot commented Nov 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dc9056b) 63.14% compared to head (d0c06ce) 96.66%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #406       +/-   ##
===========================================
+ Coverage   63.14%   96.66%   +33.51%     
===========================================
  Files          42       45        +3     
  Lines        4249     3625      -624     
  Branches       62       71        +9     
===========================================
+ Hits         2683     3504      +821     
+ Misses       1550      106     -1444     
+ Partials       16       15        -1     

see 42 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JimmyDaddy JimmyDaddy merged commit 834c80b into master Nov 7, 2023
6 checks passed
@JimmyDaddy JimmyDaddy deleted the improve-test-coverage branch November 7, 2023 02:34
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.

3 participants