<commit_before>/* This file is a part of @mdn/browser-compat-data
 * See LICENSE file for more information. */

import assert from 'node:assert/strict';

import bcd from '../../index.js';
import {
  applyMirroring,
  createDataBundle,
  generateMeta,
  createManifest,
} from './build.js';

describe('build', () => {
  it('build data matches', async () => {
    const devBcd = {
      ...applyMirroring(bcd),
      __meta: generateMeta(),
    };

    assert.deepEqual(await createDataBundle(), devBcd);
  }).timeout(30000);

  it('package.json', () => {
    const manifest = createManifest();

    assert.equal(manifest.main, 'data.json');<commit_msg>Disable build match test due to long build times (#16711)<commit_after>/* This file is a part of @mdn/browser-compat-data
 * See LICENSE file for more information. */

import assert from 'node:assert/strict';

import bcd from '../../index.js';
import {
  applyMirroring,
  createDataBundle,
  generateMeta,
  createManifest,
} from './build.js';

describe('build', () => {
  // Disabled due to long build times
  // it('build data matches', async () => {
  //   this.skip();

  //   const devBcd = {
  //     ...applyMirroring(bcd),
  //     __meta: generateMeta(),
  //   };

  //   assert.deepEqual(await createDataBundle(), devBcd);
  // }).timeout(30000);

  it('package.json', () => {
    const manifest = createManifest();

    assert.equal(manifest.main, 'data.json');
{'fraction_non_alphanumeric': 0.16900420757363255, 'fraction_numerical': 0.010518934081346423, 'mean_word_length': 3.197058823529412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6175309', 'n_tokens_mistral': 464, 'n_tokens_neox': 449, 'n_words': 113}