chore: add jest global variables (#42573)

This commit is contained in:
Huyen Nguyen
2021-06-20 09:14:42 +02:00
committed by GitHub
parent 42e8b2247e
commit 2c16234853
82 changed files with 8 additions and 114 deletions
@@ -1,5 +1,3 @@
/* global describe it expect beforeEach */
const { isObject } = require('lodash');
const mockAST = require('../__fixtures__/ast-yaml-challenge.json');
@@ -1,4 +1,3 @@
/* global describe it expect beforeEach */
const isArray = require('lodash/isArray');
const simpleAST = require('../__fixtures__/ast-simple.json');
@@ -1,4 +1,3 @@
/* global describe it expect beforeEach */
const mockAST = require('../__fixtures__/ast-simple.json');
const editableSolutionAST = require('../__fixtures__/ast-erm-in-solution.json');
const multiSolnsAST = require('../__fixtures__/ast-multiple-solutions.json');
@@ -1,4 +1,3 @@
/* global describe it expect beforeEach */
const simpleAST = require('../__fixtures__/ast-simple.json');
const brokenHintsAST = require('../__fixtures__/ast-broken-hints.json');
const addTests = require('./add-tests');
@@ -1,4 +1,3 @@
/* global describe it expect */
const mockAST = require('../__fixtures__/ast-simple.json');
// eslint-disable-next-line max-len
const incorrectMarkersAST = require('../__fixtures__/ast-incorrect-markers.json');
@@ -1,4 +1,3 @@
/* global describe it expect beforeEach */
const simpleAST = require('../__fixtures__/ast-simple.json');
const mockVideoAST = require('../__fixtures__/ast-video-challenge.json');
// eslint-disable-next-line max-len
@@ -1,4 +1,3 @@
/* global describe it expect jest */
const path = require('path');
const cloneDeep = require('lodash/cloneDeep');
const toVfile = require('to-vfile');
@@ -1,4 +1,3 @@
/* global describe it expect */
const cloneDeep = require('lodash/cloneDeep');
const { selectAll } = require('unist-util-select');
const find = require('unist-util-find');
@@ -1,4 +1,3 @@
/* global expect*/
const isArray = require('lodash/isArray');
const find = require('unist-util-find');
const { root } = require('mdast-builder');
@@ -1,4 +1,3 @@
/* global expect*/
const getId = require('./get-id');
const idNode = require('./__fixtures__/id-node.json');
const imageNode = require('./__fixtures__/image-node.json');
@@ -1,4 +1,3 @@
/* global expect*/
const mdastToHTML = require('./mdast-to-html');
const mdastMixedNodes = require('./__fixtures__/mdast-mixed-nodes.json');
const mdastWithEmNode = require('./__fixtures__/mdast-with-em.json');