| 12345678910111213141516171819202122232425262728 |
- // Mock WatermelonDB
- jest.mock('@nozbe/watermelondb', () => ({
- Model: jest.fn(),
- Database: jest.fn(),
- Q: {
- where: jest.fn(),
- },
- field: jest.fn(),
- date: jest.fn(),
- relation: jest.fn(),
- children: jest.fn(),
- }));
- // Mock SQLite adapter
- jest.mock('@nozbe/watermelondb/adapters/sqlite', () => ({
- SQLiteAdapter: jest.fn(),
- }));
- // Global test setup
- global.console = {
- ...console,
- // Uncomment to ignore a specific log level
- // log: jest.fn(),
- // debug: jest.fn(),
- // info: jest.fn(),
- // warn: jest.fn(),
- // error: jest.fn(),
- };
|