Skip to content

Commit 025c54c

Browse files
0.0.18-beta
1 parent 4b62dd4 commit 025c54c

File tree

6 files changed

+7
-24
lines changed

6 files changed

+7
-24
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"recommendations": [
3-
"orta.vscode-jest"
4-
]
5-
}
2+
"recommendations": ["kavod-io.vscode-jest-test-adapter", "esbenp.prettier-vscode", "github.vscode-github-actions"]
3+
}

jest.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
44
testMatch: ['**/test/**/*.test.ts'],
5-
// longer timeout when using a debugger:
6-
testTimeout: 30 * 1000,
7-
maxWorkers: 8,
5+
maxWorkers: 12,
86
collectCoverageFrom: ['<rootDir>/src/**/*.ts', '!<rootDir>/src/index.ts', '!<rootDir>/src/types/**/*.ts'],
97
transform: {
108
'^.+\\.(ts|tsx)$': [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sqlitecloud-js",
3-
"version": "0.0.17-beta",
3+
"version": "0.0.18-beta",
44
"description": "SQLiteCloud drivers for Typescript/Javascript in edge, web and node clients",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",

sqlitecloud-js.code-workspace

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

test/connection.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ describe('connection', () => {
344344
const startTime = Date.now()
345345
for (let i = 0; i < numQueries; i++) {
346346
chinook.sendCommands('TEST STRING', (error, results) => {
347+
expect(error).toBeNull()
347348
expect(results).toBe('Hello World, this is a test string.')
348349
if (++completed >= numQueries) {
349350
const queryMs = (Date.now() - startTime) / numQueries

test/shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export const LONG_TIMEOUT = 100 * 1000 // 100 seconds
1616
export const EXTRA_LONG_TIMEOUT = 60 * 60 * 1000 // 1 hour
1717

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

2323
/** Testing database from .env file */
2424
export const CHINOOK_DATABASE_URL = process.env.CHINOOK_DATABASE_URL as string

0 commit comments

Comments
 (0)