Skip to content

Commit

Permalink
0.0.18-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
gionatamettifogo committed Nov 18, 2023
1 parent 4b62dd4 commit 025c54c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 24 deletions.
6 changes: 2 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"recommendations": [
"orta.vscode-jest"
]
}
"recommendations": ["kavod-io.vscode-jest-test-adapter", "esbenp.prettier-vscode", "github.vscode-github-actions"]
}
4 changes: 1 addition & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/test/**/*.test.ts'],
// longer timeout when using a debugger:
testTimeout: 30 * 1000,
maxWorkers: 8,
maxWorkers: 12,
collectCoverageFrom: ['<rootDir>/src/**/*.ts', '!<rootDir>/src/index.ts', '!<rootDir>/src/types/**/*.ts'],
transform: {
'^.+\\.(ts|tsx)$': [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sqlitecloud-js",
"version": "0.0.17-beta",
"version": "0.0.18-beta",
"description": "SQLiteCloud drivers for Typescript/Javascript in edge, web and node clients",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
14 changes: 0 additions & 14 deletions sqlitecloud-js.code-workspace

This file was deleted.

1 change: 1 addition & 0 deletions test/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ describe('connection', () => {
const startTime = Date.now()
for (let i = 0; i < numQueries; i++) {
chinook.sendCommands('TEST STRING', (error, results) => {
expect(error).toBeNull()
expect(results).toBe('Hello World, this is a test string.')
if (++completed >= numQueries) {
const queryMs = (Date.now() - startTime) / numQueries
Expand Down
4 changes: 2 additions & 2 deletions test/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export const LONG_TIMEOUT = 100 * 1000 // 100 seconds
export const EXTRA_LONG_TIMEOUT = 60 * 60 * 1000 // 1 hour

/** Number of times or size of stress (when repeated in sequence) */
export const SEQUENCE_TEST_SIZE = 100
export const SEQUENCE_TEST_SIZE = 75
/** Concurrency size for multiple connection tests */
export const SIMULTANEOUS_TEST_SIZE = 200
export const SIMULTANEOUS_TEST_SIZE = 150

/** Testing database from .env file */
export const CHINOOK_DATABASE_URL = process.env.CHINOOK_DATABASE_URL as string
Expand Down

0 comments on commit 025c54c

Please sign in to comment.