Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
query-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Microservices
query-service
Commits
46bd5073
Commit
46bd5073
authored
2 weeks ago
by
Marcos Pieras
Browse files
Options
Downloads
Patches
Plain Diff
test: adds ts logger
parent
8891e85d
No related branches found
No related tags found
5 merge requests
!42
test: adds return message to handle e2e tests
,
!40
test: adds test on populate template
,
!37
chore: adds precommit and commitlint
,
!35
test: adds tests on statcheck and diffcheck
,
!34
test: adds tests for query service
Pipeline
#146815
passed
2 weeks ago
Stage: tag-release
Stage: get-release-tag
Stage: container-image
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
package.json
+1
-1
1 addition, 1 deletion
package.json
src/tests/query/queryConverter.test.ts
+3
-0
3 additions, 0 deletions
src/tests/query/queryConverter.test.ts
src/tests/query/queryTranslator/queryTranslator.test.ts
+3
-0
3 additions, 0 deletions
src/tests/query/queryTranslator/queryTranslator.test.ts
with
7 additions
and
1 deletion
package.json
+
1
−
1
View file @
46bd5073
...
...
@@ -5,7 +5,7 @@
"version"
:
"1.0.0"
,
"scripts"
:
{
"build"
:
"tsc"
,
"test"
:
"
echo
\"
Error: no test specified
\"
&& exit 1
"
,
"test"
:
"
vitest
"
,
"dev"
:
"bun run --watch --inspect=6498 src/index.ts"
,
"start"
:
"bun run --production src/index.ts"
,
"lint"
:
"eslint src/**/* --no-error-on-unmatched-pattern"
...
...
This diff is collapsed.
Click to expand it.
src/tests/query/queryConverter.test.ts
+
3
−
0
View file @
46bd5073
import
{
query2Cypher
}
from
'
../../utils/cypher/converter/queryConverter
'
;
import
{
StringFilterTypes
,
type
BackendQueryFormat
}
from
'
ts-common
'
;
import
{
expect
,
describe
,
it
}
from
'
vitest
'
;
import
{
Logger
}
from
'
ts-common
'
;
Logger
.
excludedOwners
.
push
(
'
ts-common
'
);
function
fixCypherSpaces
(
cypher
?:
string
|
null
):
string
{
if
(
!
cypher
)
{
...
...
This diff is collapsed.
Click to expand it.
src/tests/query/queryTranslator/queryTranslator.test.ts
+
3
−
0
View file @
46bd5073
...
...
@@ -8,6 +8,9 @@ import { type BackendQueryFormat } from 'ts-common';
import
{
createQueryMultiGraphFromData
,
settingsBase
,
ss_id
}
from
'
./testData
'
;
import
{
visualQuery_1
}
from
'
./testData
'
;
import
{
expectedResult_1
}
from
'
./testData
'
;
import
{
Logger
}
from
'
ts-common
'
;
Logger
.
excludedOwners
.
push
(
'
ts-common
'
);
describe
(
'
query2backend
'
,
()
=>
{
it
(
'
should return correctly a node - 0
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment