Skip to content

Commit d4ea6e4

Browse files
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

8 files changed

+2321
-1550
lines changed

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 5 deletions
This file was deleted.

DEVELOPMENT.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ Test your code with Jest framework:
3030
npm run test
3131
```
3232

33-
**Note:** This project uses [husky](https://typicode.github.io/husky/), [pinst](https://github.com/typicode/pinst) and [commitlint](https://commitlint.js.org/) to automatically execute test and [lint commit message](https://www.conventionalcommits.org/) before every commit.
34-
3533
### Build
3634

3735
Build production (distribution) files in your **dist** folder:

0 commit comments

Comments
 (0)