Skip to content

Commit dc417e1

Browse files
author
mumiao
authored
feat: improve flinksql insertStatement
* feat: feat: improve flinksql insertStatement * feat: complete insertFromSelectQueries syntax unit tests * feat: complete insertValuesIntoTable syntax unit tests * feat: improve insertValuesIntoTable sql case data * feat: complete insertMultipeTables unit cases * feat: depracate insertMulStatement grammar for 1.1.4 * fix: depracate unless files * test: recover jest.config info * feat: improve insertMultipleTable.sql test case * feat: build new flinksql parser and lexer * feat: generator new flink parser and lexer file * test: improve readSQL logic * test: fix insertMultipleTable sql error * test: recover jest.config.js info
1 parent c41beea commit dc417e1

13 files changed

Lines changed: 5934 additions & 2333 deletions

jest.config.js

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
module.exports = {
77
// All imported modules in your tests should be mocked automatically
88
// automock: false,
9-
109

1110
// Stop running tests after `n` failures
1211
// bail: 0,
@@ -85,7 +84,7 @@ module.exports = {
8584
"ts",
8685
"tsx",
8786
"json",
88-
"node"
87+
"node",
8988
],
9089

9190
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
@@ -154,10 +153,7 @@ module.exports = {
154153
// testLocationInResults: false,
155154

156155
// The glob patterns Jest uses to detect test files
157-
testMatch: [
158-
"**/__tests__/**/*.[jt]s?(x)",
159-
"**/?(*.)+(spec|test).[tj]s?(x)"
160-
],
156+
testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[tj]s?(x)"],
161157

162158
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
163159
// testPathIgnorePatterns: [
@@ -175,17 +171,18 @@ module.exports = {
175171

176172
// A map from regular expressions to paths to transformers
177173
transform: {
178-
'\\.[jt]sx?$': ['ts-jest', {
179-
tsconfig: {
180-
noUnusedLocals: false,
181-
}
182-
}]
174+
"\\.[jt]sx?$": [
175+
"ts-jest",
176+
{
177+
tsconfig: {
178+
noUnusedLocals: false,
179+
},
180+
},
181+
],
183182
},
184183

185184
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
186-
transformIgnorePatterns: [
187-
'/node_modules/(?!antlr4)'
188-
],
185+
transformIgnorePatterns: ["/node_modules/(?!antlr4)"],
189186

190187
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
191188
// unmockedModulePathPatterns: undefined,
@@ -198,7 +195,7 @@ module.exports = {
198195

199196
// Whether to use watchman for file crawling
200197
// watchman: true,
201-
moduleNameMapper : {
202-
'^antlr4$': '<rootDir>/node_modules/antlr4/src/antlr4/index.web.js',
203-
}
198+
moduleNameMapper: {
199+
"^antlr4$": "<rootDir>/node_modules/antlr4/src/antlr4/index.web.js",
200+
},
204201
};

0 commit comments

Comments
 (0)