test: remove barrier files to improve unit testing performance (#249)
* test: remove barrier files to improve unit testing performance * chore: change check-types command
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { ImpalaSQL, ImpalaSqlSplitListener, ImpalaSqlParserListener } from '../../filters';
|
||||
import ImpalaSQL, { ImpalaSqlSplitListener } from 'src/parser/impala';
|
||||
import { ImpalaSqlParserListener } from 'src/lib/impala/ImpalaSqlParserListener';
|
||||
|
||||
const validSQL1 = `INSERT INTO country_page_view
|
||||
VALUES ('Chinese', 'mumiao', 18),
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ImpalaSQL } from '../../filters';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
|
||||
describe('ImpalaSQL Lexer tests', () => {
|
||||
const parser = new ImpalaSQL();
|
||||
|
@ -1,4 +1,6 @@
|
||||
import { ImpalaSQL, ImpalaSqlParserListener, ParseTreeListener } from '../../filters';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { ImpalaSqlParserListener } from 'src/lib/impala/ImpalaSqlParserListener';
|
||||
import { ParseTreeListener } from 'antlr4ts/tree/ParseTreeListener';
|
||||
|
||||
describe('impala SQL Listener Tests', () => {
|
||||
const expectTableName = 'user1';
|
||||
|
@ -1,6 +1,7 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { ImpalaSQL, CaretPosition, SyntaxContextType } from '../../../filters';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { CaretPosition, SyntaxContextType } from 'src/parser/common/basic-parser-types';
|
||||
|
||||
const syntaxSql = fs.readFileSync(
|
||||
path.join(__dirname, 'fixtures', 'multipleStatement.sql'),
|
||||
|
@ -1,7 +1,8 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { ImpalaSQL, CaretPosition, SyntaxContextType } from '../../../filters';
|
||||
import { commentOtherLine } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { CaretPosition, SyntaxContextType } from 'src/parser/common/basic-parser-types';
|
||||
import { commentOtherLine } from 'test/helper';
|
||||
|
||||
const syntaxSql = fs.readFileSync(
|
||||
path.join(__dirname, 'fixtures', 'syntaxSuggestion.sql'),
|
||||
|
@ -1,7 +1,8 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { ImpalaSQL, CaretPosition } from '../../../filters';
|
||||
import { commentOtherLine } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { CaretPosition } from 'src/parser/common/basic-parser-types';
|
||||
import { commentOtherLine } from 'test/helper';
|
||||
|
||||
const tokenSql = fs.readFileSync(path.join(__dirname, 'fixtures', 'tokenSuggestion.sql'), 'utf-8');
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ImpalaSQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new ImpalaSQL();
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ImpalaSQL } from '../../filters';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
|
||||
const randomText = `dhsdansdnkla ndjnsla ndnalks`;
|
||||
const unCompleteSQL = `CREATE TABLE`;
|
||||
|
@ -1,4 +1,6 @@
|
||||
import { ImpalaSQL, ImpalaSqlParserVisitor, AbstractParseTreeVisitor } from '../../filters';
|
||||
import ImpalaSQL from 'src/parser/impala';
|
||||
import { AbstractParseTreeVisitor } from 'antlr4ts/tree/AbstractParseTreeVisitor';
|
||||
import { ImpalaSqlParserVisitor } from 'src/lib/impala/ImpalaSqlParserVisitor';
|
||||
|
||||
describe('impala SQL Visitor Tests', () => {
|
||||
const expectTableName = 'user1';
|
||||
|
Reference in New Issue
Block a user