<commit_before>/*
 * Copyright (c) 2020, salesforce.com, inc.
 * All rights reserved.
 * Licensed under the BSD 3-Clause license.
 * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
 */

import { expect } from 'chai';
import * as path from 'path';
import {
  Hover,
  Position,
  MarkdownString,
  commands,
  window,
  workspace
} from 'vscode';
import { LanguageClient } from 'vscode-languageclient';
import { createLanguageClient } from '../../src/languageClient';

describe('LWC Hovers', () => {
  let lwcDir = path.join(
    workspace.workspaceFolders![0].uri.fsPath,
    'force-app',
    'main',
    'default',
    'lwc'
  );

  let client: LanguageClient;

  before(async function() {
    this.timeout(5000);
    // creating a new client so that we can wait on its ready status before the
    // tests begin. set the timeout at the suite level to give the client some time
    // to get ready
    client = createLanguageClient(
      path.join(
        __dirname,
        '..',
        '..',
        '..',<commit_msg>test: increase hover timeout to 10000 (#2833)<commit_after>/*
 * Copyright (c) 2020, salesforce.com, inc.
 * All rights reserved.
 * Licensed under the BSD 3-Clause license.
 * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
 */

import { expect } from 'chai';
import * as path from 'path';
import {
  Hover,
  Position,
  MarkdownString,
  commands,
  window,
  workspace
} from 'vscode';
import { LanguageClient } from 'vscode-languageclient';
import { createLanguageClient } from '../../src/languageClient';

describe('LWC Hovers', () => {
  let lwcDir = path.join(
    workspace.workspaceFolders![0].uri.fsPath,
    'force-app',
    'main',
    'default',
    'lwc'
  );

  let client: LanguageClient;

  before(async function() {
    this.timeout(10000);
    // creating a new client so that we can wait on its ready status before the
    // tests begin. set the timeout at the suite level to give the client some time
    // to get ready
    client = createLanguageClient(
      path.join(
        __dirname,
        '..',
        '..',
        '..',
{'fraction_non_alphanumeric': 0.1263062244434348, 'fraction_numerical': 0.014538845979100408, 'mean_word_length': 2.842931937172775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6962162', 'n_tokens_mistral': 698, 'n_tokens_neox': 675, 'n_words': 220}