
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@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
The npm package @objectql/driver-tck receives a total of 10 weekly downloads. As such, @objectql/driver-tck popularity was classified as not popular.
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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.