Commit d4ea6e4
feat: Add missing unit tests for CROSS JOIN and Raw Queries (#115)
This commit introduces new unit tests to improve test coverage based on
the existing documentation.
- Added tests for CROSS JOIN functionality in
`tests/unit/select.test.ts`. These tests cover simple CROSS JOINs, CROSS
JOINs with WHERE clauses, and CROSS JOINs with specific fields selected.
- Created a new test file `tests/unit/raw.test.ts` to specifically test
the `raw()` query builder method. These tests cover raw SELECT (with
fetchType 'ALL', 'ONE', and default), INSERT, UPDATE, and DELETE
statements, including the handling of parameterized arguments.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent d40821a commit d4ea6e4
File tree
8 files changed
+2321
-1550
lines changed- .husky
- tests
- integration
- unit
8 files changed
+2321
-1550
lines changedThis file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
0 commit comments