
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@objectql/driver-tck
Advanced tools
A comprehensive test suite to ensure all ObjectQL drivers implement consistent behavior.
The Driver TCK provides a standardized set of tests that all ObjectQL drivers must pass. This ensures:
import { runDriverTCK } from '@objectql/driver-tck';
import { MyDriver } from './my-driver';
describe('MyDriver TCK', () => {
runDriverTCK(() => new MyDriver({
// driver config
}), {
skip: {
// Skip tests for unsupported features
aggregations: true,
transactions: true
},
timeout: 30000
});
});
import { describe } from 'vitest';
import { runDriverTCK } from '@objectql/driver-tck';
import { MyDriver } from './my-driver';
describe('MyDriver TCK', () => {
runDriverTCK(() => new MyDriver(), {
timeout: 30000
});
});
Use the skip configuration to disable tests for features your driver doesn't support:
{
skip: {
transactions: true, // Skip transaction tests
joins: true, // Skip join tests
fullTextSearch: true, // Skip full-text search tests
aggregations: true, // Skip aggregation tests
distinct: true, // Skip distinct tests
bulkOperations: true // Skip bulk operation tests
}
}
Set custom timeout for long-running operations:
{
timeout: 60000 // 60 seconds
}
Provide custom setup/teardown logic:
{
hooks: {
beforeAll: async () => {
// Setup database connection
},
afterAll: async () => {
// Cleanup
},
beforeEach: async () => {
// Clear test data
},
afterEach: async () => {
// Post-test cleanup
}
}
}
To pass the TCK, your driver must implement:
create(objectName, data) - Create a recordfindOne(objectName, id) - Find by IDfind(objectName, query) - Query recordsupdate(objectName, id, data) - Update a recorddelete(objectName, id) - Delete a recordcount(objectName, filters) - Count recordsdistinct(objectName, field, filters) - Get distinct valuesaggregate(objectName, pipeline) - Aggregation pipelineexecuteCommand(command) - Bulk operationsconnect() - Initialize connectiondisconnect() - Close connectionclear() - Clear all data (for testing)created_at and updated_atnull for non-existent recordsMIT
FAQs
Technology Compatibility Kit for ObjectQL drivers - Unified test suite
We found that @objectql/driver-tck demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.