import knex from './src/db/knex';
import { Model } from 'objection';
import { generateLetterBoxedHints } from './src/scripts/letterboxed-generator';

async function runTest() {
  try {
    // Initialize Knex and Objection Model
    Model.knex(knex);
    console.log('Starting Letter Boxed hints generation test...');
    await generateLetterBoxedHints();
    console.log('Letter Boxed hints generation test finished successfully.');
  } catch (error) {
    console.error('Error during Letter Boxed hints generation test:', error);
  } finally {
    // Destroy the knex connection to allow the process to exit
    await knex.destroy();
  }
}

runTest();