Skip to content

Commit

Permalink
test(dsv): update test for processRow types
Browse files Browse the repository at this point in the history
  • Loading branch information
chika3742 committed Sep 25, 2023
1 parent 2e9d5d3 commit 4d50f83
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/dsv/test/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ const config: RollupOptions = {
include: 'node_modules/**',
exclude: ['node_modules/foo/**', 'node_modules/bar/**'],
processRow(row) {
return row;
return {
foo: +row.foo,
bar: new Date(row.bar),
baz: row.baz === 'true',
...row
};
}
}),
dsv({
processRow() {
// void
}
})
]
Expand Down

0 comments on commit 4d50f83

Please sign in to comment.