<commit_before>import { expect } from 'chai';
import { traceWords, getDefaultSettings } from '.';

describe('Verify trace', () => {
    test('tests tracing a word', async () => {
        const words = ['apple'];
        const config = getDefaultSettings();
        const result = await traceWords(words, config);
        expect(result).to.not.be.empty;

        const foundIn = result.filter(r => r.found).map(r => r.dictName);
        expect(foundIn).to.contain('en_US.trie.gz');
    });
});<commit_msg>Update trace.test.ts<commit_after>import { expect } from 'chai';
import { traceWords, getDefaultSettings } from '.';

describe('Verify trace', () => {
    jest.setTimeout(10000);
    test('tests tracing a word', async () => {
        const words = ['apple'];
        const config = getDefaultSettings();
        const result = await traceWords(words, config);
        expect(result).to.not.be.empty;

        const foundIn = result.filter(r => r.found).map(r => r.dictName);
        expect(foundIn).to.contain('en_US.trie.gz');
    });
});
{'fraction_non_alphanumeric': 0.17066155321188878, 'fraction_numerical': 0.004793863854266539, 'mean_word_length': 3.1102362204724407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '806098', 'n_tokens_mistral': 323, 'n_tokens_neox': 314, 'n_words': 68}