Skip to content

Commit

Permalink
refactor: add missing @jest/globals imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaShkaruba committed Nov 28, 2023
1 parent 4c05876 commit e09071b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// and limitations under the License.

import {clickhouseAutocompleteParser} from './clickhouseAutocompleteParser';
import {describe, expect, it, beforeAll} from '@jest/globals';

// prettier-ignore-start

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import structure from './jison/structure.json';
import type { AutocompleteParser } from '../../lib/types';
import { extractTestCases, runTestCases } from '../../test/testing';
import { assertPartials, CommonParser } from '../../lib/parsing-typed';
import {describe, it} from '@jest/globals';

const jisonFolder = 'src/parsing/parsers/clickhouse/jison';
const groupedTestCases = extractTestCases(jisonFolder, structure.autocomplete);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
// and limitations under the License.

import {genericAutocompleteParser} from './genericAutocompleteParser';
import {describe, expect, it, beforeAll} from '@jest/globals';

// prettier-ignore-start

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import structure from './jison/structure.json';
import type { AutocompleteParser } from '../../lib/types';
import { extractTestCases, runTestCases } from '../../test/testing';
import { assertPartials, CommonParser } from '../../lib/parsing-typed';
import {describe, it} from '@jest/globals';

const jisonFolder = 'src/parsing/parsers/generic/jison';
const groupedTestCases = extractTestCases(jisonFolder, structure.autocomplete);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {postgresqlAutocompleteParser} from './postgresqlAutocompleteParser';
import {describe, expect, it, beforeAll} from '@jest/globals';

// prettier-ignore-start

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import structure from './jison/structure.json';
import type { AutocompleteParser } from '../../lib/types';
import { extractTestCases, runTestCases } from '../../test/testing';
import { assertPartials, CommonParser } from '../../lib/parsing-typed';
import {describe, it} from '@jest/globals';

const jisonFolder = 'src/parsing/parsers/postgresql/jison';
const groupedTestCases = extractTestCases(jisonFolder, structure.autocomplete);
Expand Down
1 change: 1 addition & 0 deletions src/parsing/test/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
// Needed to compare by val without taking attr order into account
import {existsSync, readFileSync} from 'fs';
import {AutocompleteParser} from '../lib/types';
import {describe, expect, it, beforeAll} from '@jest/globals';

interface TestCase {
namePrefix: string; // ex. "should suggest keywords"
Expand Down

0 comments on commit e09071b

Please sign in to comment.