From 4d50f834901eb37d0f645a0956b5f3ceb694905e Mon Sep 17 00:00:00 2001 From: chika3742 Date: Sat, 9 Sep 2023 16:42:26 +0900 Subject: [PATCH] test(dsv): update test for processRow types --- packages/dsv/test/types.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/dsv/test/types.ts b/packages/dsv/test/types.ts index f48fb7319..54528eef5 100644 --- a/packages/dsv/test/types.ts +++ b/packages/dsv/test/types.ts @@ -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 } }) ]