-
Notifications
You must be signed in to change notification settings - Fork 614
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
feat(csv): infer column names from object arrays for stringify() #6122
base: main
Are you sure you want to change the base?
Conversation
await t.step( | ||
{ | ||
name: "Invalid data, no columns", | ||
fn() { | ||
const data = [{ a: 1 }, { a: 2 }]; | ||
assertThrows( | ||
() => stringify(data), | ||
TypeError, | ||
"No property accessor function was provided for object", | ||
); | ||
}, | ||
}, | ||
); | ||
await t.step( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like these were duplicates, removed both as they are not relevant anymore
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6122 +/- ##
==========================================
- Coverage 96.57% 96.55% -0.03%
==========================================
Files 535 535
Lines 40583 40600 +17
Branches 6094 6099 +5
==========================================
+ Hits 39195 39203 +8
- Misses 1344 1352 +8
- Partials 44 45 +1 ☔ View full report in Codecov by Sentry. |
Implements #3857
Allows usages like below by deriving the column names from the first array item