Skip to content

Commit

Permalink
feat! update exported interfaces, refactor the last legacy json tests…
Browse files Browse the repository at this point in the history
… to ts (#114)

* refactor: add where_clause test

* refactor: add value_expression test

* refactor: refactor table, where_clause, update_table

* refactor: rename cte_select_statement

* refactor: migrate common_table_expression_select_statement, from_clause tests to typescript

* feat: add Group By suggestion, refactor group_by_clause.test.ts

* refactor: migrate union_clause test to ts

* refactor: migrate select_conditions test to typescript

* refactor: migrate limit_clause test to typescript

* refactor: migrate order_by_clause test to ts

* refactor: add having_clause.test.ts

* refactor: migrate joins test to ts

* refactor: fix naming

* refactor: migrate part of select.test.ts to typescript

* refactor: add temporary select2 test file

* refactor: fix suggestColRefKeywords checks

* refactor: merge select.test and select2.test together

* refactor: remove fix unhandled error todos

* refactor: remove hasErrors handling todo

* refactor: remove select.test.jsons, add select.test.ts

* refactor: migrate generic/grammar/main test to ts

* refactor: migrate common/error/error.test to ts

* refactor: remove useless meta parser tests

* refactor: migrate locations test to our simple test framework, remove lots of useless tests

* refactor: disable eslint in some places

* refactor: rename some stuff at autocomplete-parse-result.ts

* refactor: refactor autocomplete-parse-result.ts back

* feat!: rename generic parser to mysql parser
  • Loading branch information
NikitaShkaruba authored Dec 7, 2023
1 parent 4510693 commit 4b1d52f
Show file tree
Hide file tree
Showing 147 changed files with 39,290 additions and 38,243 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ module.exports = {
},
moduleDirectories: ['node_modules', 'src/autocomplete'],
testMatch: ['<rootDir>/src/autocomplete/**/*.test.(js|jsx|ts|tsx)'],
setupFilesAfterEnv: ['<rootDir>/src/autocomplete/test/jest.init.ts'],
collectCoverageFrom: ['<rootDir>/src/autocomplete/**/*.{js,jsx}'],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test": "npm run generate && npm run test_without_generate",
"test_without_generate": "jest src/autocomplete",
"build_generator": "cd src/generator && rimraf dist && tsc -p tsconfig.build.json",
"launch_generator": "cd src/generator && node dist/main.js generic postgresql clickhouse",
"launch_generator": "cd src/generator && node dist/main.js mysql postgresql clickhouse",
"generate": "npm run build_generator && npm run launch_generator",
"lint": "run-p lint:*",
"lint:js": "eslint --ext .js,.ts src",
Expand Down
22 changes: 0 additions & 22 deletions src/autocomplete/@types/expect.d.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/autocomplete/@types/jest.d.ts

This file was deleted.

Loading

0 comments on commit 4b1d52f

Please sign in to comment.