<commit_before>/* global describe, it, beforeEach, before */

const expect = require('unexpected')

require('ts-node/register')
const MinDB = require('../src/main').default

describe('MinDB.Collection', () => {
  let col

  before(() => {
    MinDB.reset()
    col = MinDB.create('db').collection('col')
  })<commit_msg>Fix collection unit test to use dist<commit_after>/* global describe, it, beforeEach, before */

const expect = require('unexpected')

const MinDB = require('../dist/mindb.cjs')

describe('MinDB.Collection', () => {
  let col

  before(() => {
    MinDB.reset()
    col = MinDB.create('db').collection('col')
  })
{'fraction_non_alphanumeric': 0.1895734597156398, 'fraction_numerical': 0.0, 'mean_word_length': 4.112903225806452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3469375', 'n_tokens_mistral': 203, 'n_tokens_neox': 198, 'n_words': 45}