- Refactored delta creation in test files to use createDelta() pattern - Replaced direct Delta instantiations with fluent builder API - Updated relationship deltas to use setProperty with proper entity context - Ensured all tests pass with the new delta creation approach This is part of the ongoing effort to standardize on the DeltaBuilder API across the codebase for better consistency and maintainability.
29 lines
740 B
TypeScript
29 lines
740 B
TypeScript
// Set up environment variables for tests
|
|
// DEBUG handling examples:
|
|
// npm test // will set DEBUG=rz:* by default
|
|
// NO_DEBUG=true npm test // will not set DEBUG
|
|
// DEBUG=other npm test // will set DEBUG=other
|
|
if (!process.env.DEBUG && !process.env.NO_DEBUG) {
|
|
process.env.DEBUG = 'rz:*';
|
|
}
|
|
|
|
// Extend the global Jest namespace
|
|
declare global {
|
|
namespace jest {
|
|
interface Matchers<R> {
|
|
toBeWithinRange(a: number, b: number): R;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Add any global test setup here
|
|
|
|
// This is a placeholder test to satisfy Jest's requirement for at least one test
|
|
describe('Test Setup', () => {
|
|
it('should pass', () => {
|
|
expect(true).toBe(true);
|
|
});
|
|
});
|
|
|
|
export {}; // This file needs to be a module
|