From e09071bbefde121db238c4b0dda57297e9084a05 Mon Sep 17 00:00:00 2001 From: n-shkaruba Date: Tue, 28 Nov 2023 17:03:36 +0100 Subject: [PATCH] refactor: add missing @jest/globals imports --- .../clickhouse/clickhouseAutocompleteParser.locations.test.js | 1 + .../parsers/clickhouse/clickhouseAutocompleteParser.test.ts | 1 + .../parsers/generic/genericAutocompleteParser.locations.test.js | 1 + src/parsing/parsers/generic/genericAutocompleteParser.test.ts | 1 + .../postgresql/postgresqlAutocompleteParser.locations.test.js | 1 + .../parsers/postgresql/postgresqlAutocompleteParser.test.ts | 1 + src/parsing/test/testing.ts | 1 + 7 files changed, 7 insertions(+) diff --git a/src/parsing/parsers/clickhouse/clickhouseAutocompleteParser.locations.test.js b/src/parsing/parsers/clickhouse/clickhouseAutocompleteParser.locations.test.js index 9d279947..fccaa97e 100644 --- a/src/parsing/parsers/clickhouse/clickhouseAutocompleteParser.locations.test.js +++ b/src/parsing/parsers/clickhouse/clickhouseAutocompleteParser.locations.test.js @@ -10,6 +10,7 @@ // and limitations under the License. import {clickhouseAutocompleteParser} from './clickhouseAutocompleteParser'; +import {describe, expect, it, beforeAll} from '@jest/globals'; // prettier-ignore-start diff --git a/src/parsing/parsers/clickhouse/clickhouseAutocompleteParser.test.ts b/src/parsing/parsers/clickhouse/clickhouseAutocompleteParser.test.ts index e5e5b849..3f3d3bac 100644 --- a/src/parsing/parsers/clickhouse/clickhouseAutocompleteParser.test.ts +++ b/src/parsing/parsers/clickhouse/clickhouseAutocompleteParser.test.ts @@ -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); diff --git a/src/parsing/parsers/generic/genericAutocompleteParser.locations.test.js b/src/parsing/parsers/generic/genericAutocompleteParser.locations.test.js index 89fa6269..9fc9a117 100644 --- a/src/parsing/parsers/generic/genericAutocompleteParser.locations.test.js +++ b/src/parsing/parsers/generic/genericAutocompleteParser.locations.test.js @@ -29,6 +29,7 @@ // and limitations under the License. import {genericAutocompleteParser} from './genericAutocompleteParser'; +import {describe, expect, it, beforeAll} from '@jest/globals'; // prettier-ignore-start diff --git a/src/parsing/parsers/generic/genericAutocompleteParser.test.ts b/src/parsing/parsers/generic/genericAutocompleteParser.test.ts index 337d78fe..0cc98e6b 100644 --- a/src/parsing/parsers/generic/genericAutocompleteParser.test.ts +++ b/src/parsing/parsers/generic/genericAutocompleteParser.test.ts @@ -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); diff --git a/src/parsing/parsers/postgresql/postgresqlAutocompleteParser.locations.test.js b/src/parsing/parsers/postgresql/postgresqlAutocompleteParser.locations.test.js index f4bb5786..b243a62e 100644 --- a/src/parsing/parsers/postgresql/postgresqlAutocompleteParser.locations.test.js +++ b/src/parsing/parsers/postgresql/postgresqlAutocompleteParser.locations.test.js @@ -1,4 +1,5 @@ import {postgresqlAutocompleteParser} from './postgresqlAutocompleteParser'; +import {describe, expect, it, beforeAll} from '@jest/globals'; // prettier-ignore-start diff --git a/src/parsing/parsers/postgresql/postgresqlAutocompleteParser.test.ts b/src/parsing/parsers/postgresql/postgresqlAutocompleteParser.test.ts index b1cea825..ab8f1d0c 100644 --- a/src/parsing/parsers/postgresql/postgresqlAutocompleteParser.test.ts +++ b/src/parsing/parsers/postgresql/postgresqlAutocompleteParser.test.ts @@ -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); diff --git a/src/parsing/test/testing.ts b/src/parsing/test/testing.ts index 5c70e039..e8590e2b 100644 --- a/src/parsing/test/testing.ts +++ b/src/parsing/test/testing.ts @@ -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"