Skip to content

Commit

Permalink
fix benches
Browse files Browse the repository at this point in the history
  • Loading branch information
djahandarie committed Dec 13, 2024
1 parent 9b58a5e commit 79527f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benches/translator.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ import path from 'path';
import {bench, describe} from 'vitest';
import {parseJson} from '../dev/json.js';
import {createTranslatorContext} from '../test/fixtures/translator-test.js';
import {setupStubs} from '../test/utilities/database.js';
import {createFindKanjiOptions, createFindTermsOptions} from '../test/utilities/translator.js';

setupStubs();

const dirname = path.dirname(fileURLToPath(import.meta.url));
const dictionaryName = 'Test Dictionary 2';
const {translator} = await createTranslatorContext(path.join(dirname, '..', 'test', 'data/dictionaries/valid-dictionary1'), dictionaryName);
Expand Down

0 comments on commit 79527f6

Please sign in to comment.