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,5 +1,5 @@
|
||||
import { MySQL } from '../../filters';
|
||||
import { MysqlSplitListener, MySqlParserListener } from '../../filters';
|
||||
import MySQL, { MysqlSplitListener } from 'src/parser/mysql';
|
||||
import { MySqlParserListener } from 'src/lib/mysql/MySqlParserListener';
|
||||
|
||||
const validSQL1 = `INSERT INTO country_page_view
|
||||
VALUES ('Chinese', 'mumiao', 18),
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { MySQL } from '../../filters';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
|
||||
describe('MySQL Lexer tests', () => {
|
||||
const parser = new MySQL();
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { MySQL } from '../../filters';
|
||||
import { MySqlParserListener, ParseTreeListener } from '../../filters';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { MySqlParserListener } from 'src/lib/mysql/MySqlParserListener';
|
||||
import { ParseTreeListener } from 'antlr4ts/tree/ParseTreeListener';
|
||||
|
||||
describe('MySQL Listener Tests', () => {
|
||||
const expectTableName = 'user1';
|
||||
|
@ -1,6 +1,7 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { MySQL, CaretPosition, SyntaxContextType } from '../../../filters';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
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 { MySQL, CaretPosition, SyntaxContextType } from '../../../filters';
|
||||
import { commentOtherLine } from '../../../helper';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { SyntaxContextType, CaretPosition } 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 { MySQL, CaretPosition } from '../../../filters';
|
||||
import { commentOtherLine } from '../../../helper';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
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,4 +1,4 @@
|
||||
import { MySQL } from '../../filters';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
|
||||
describe('MySQL Syntax Tests', () => {
|
||||
const parser = new MySQL();
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { MySQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new MySQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { MySQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new MySQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { MySQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new MySQL();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { MySQL } from '../../../filters';
|
||||
import { readSQL } from '../../../helper';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new MySQL();
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { MySQL } from '../../filters';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
|
||||
const randomText = `dhsdansdnkla ndjnsla ndnalks`;
|
||||
const unCompleteSQL = `CREATE TABLE`;
|
||||
|
@ -1,4 +1,6 @@
|
||||
import { MySQL, MySqlParserVisitor, AbstractParseTreeVisitor } from '../../filters';
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { MySqlParserVisitor } from 'src/lib/mysql/MySqlParserVisitor';
|
||||
import { AbstractParseTreeVisitor } from 'antlr4ts/tree/AbstractParseTreeVisitor';
|
||||
|
||||
describe('MySQL Visitor Tests', () => {
|
||||
const expectTableName = 'user1';
|
||||
|
Reference in New Issue
Block a user