Skip to content

Commit

Permalink
ci: add tests for parserCache typings
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Jun 24, 2023
1 parent 891a523 commit b2c5b49
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/tsc-build/mysql/parsers/clearParserCache.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { mysql } from '../../index.js';

mysql.clearParserCache();
6 changes: 6 additions & 0 deletions test/tsc-build/mysql/parsers/setMaxParserCache.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { mysql } from '../../index.js';

mysql.setMaxParserCache(1000);

// @ts-expect-error: The `max` param is required
mysql.setMaxParserCache();
3 changes: 3 additions & 0 deletions test/tsc-build/promise/parsers/clearParserCache.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { mysqlp as mysql } from '../../index.js';

mysql.clearParserCache();
6 changes: 6 additions & 0 deletions test/tsc-build/promise/parsers/setMaxParserCache.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { mysqlp as mysql } from '../../index.js';

mysql.setMaxParserCache(1000);

// @ts-expect-error: The `max` param is required
mysql.setMaxParserCache();

0 comments on commit b2c5b49

Please sign in to comment.