<commit_before>#!/usr/bin/env ts-node

import { Wechaty }    from 'wechaty'
import { PuppetMock } from 'wechaty-puppet-mock'
import { MemoryCard } from 'memory-card'

async function main() {
  const bot = Wechaty.instance({
    puppet: new PuppetMock(),
  })
  try {
    await bot.start()
    console.log(`Wechaty v${bot.version()} smoking test passed.`)
  } catch (e) {
    console.error(e)
    // Error!
    return 1
  } finally {
    await bot.stop()
  }
  return 0
}

main()
.then(process.exit)
.catch(e => {
  console.error(e)
  process.exit(1)
})
<commit_msg>fix pack testing (#1437)<commit_after>#!/usr/bin/env ts-node

import { Wechaty }    from 'wechaty'

async function main() {
  const bot = Wechaty.instance({ puppet: 'mock' })
  try {
    await bot.start()
    console.log(`Wechaty v${bot.version()} smoking test passed.`)
  } catch (e) {
    console.error(e)
    // Error!
    return 1
  } finally {
    await bot.stop()
  }
  return 0
}

main()
.then(process.exit)
.catch(e => {
  console.error(e)
  process.exit(1)
})

{'fraction_non_alphanumeric': 0.16344294003868473, 'fraction_numerical': 0.009671179883945842, 'mean_word_length': 2.950381679389313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7226079', 'n_tokens_mistral': 401, 'n_tokens_neox': 396, 'n_words': 88}