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
bb93fe15
Commit
bb93fe15
authored
2 weeks ago
by
Marcos Pieras
Browse files
Options
Downloads
Patches
Plain Diff
test: update to vitest
parent
577604e8
No related branches found
No related tags found
4 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
Pipeline
#146819
passed
2 weeks ago
Stage: tag-release
Stage: get-release-tag
Stage: container-image
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tests/insights/diffCheck.test.ts
+5
-1
5 additions, 1 deletion
src/tests/insights/diffCheck.test.ts
src/tests/insights/statCheck.test.ts
+5
-1
5 additions, 1 deletion
src/tests/insights/statCheck.test.ts
with
10 additions
and
2 deletions
src/tests/insights/diffCheck.test.ts
+
5
−
1
View file @
bb93fe15
import
{
expect
,
test
,
describe
,
it
}
from
'
bun:
test
'
;
import
{
expect
,
test
,
describe
,
it
}
from
'
vi
test
'
;
import
type
{
GraphQueryResultMetaFromBackend
}
from
'
ts-common
'
;
import
{
hashDictionary
,
hashIsEqual
}
from
'
../../utils/hashing
'
;
import
{
compareHashedQueryResults
}
from
'
./../../readers/diffCheck
'
;
import
{
Logger
}
from
'
ts-common
'
;
Logger
.
excludedOwners
.
push
(
'
ts-common
'
);
Logger
.
excludedOwners
.
push
(
'
query-service
'
);
describe
(
'
Hash Comparison Tests
'
,
()
=>
{
it
(
'
should detect different hashes for different graph structures
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
src/tests/insights/statCheck.test.ts
+
5
−
1
View file @
bb93fe15
import
{
expect
,
test
,
describe
,
it
}
from
'
bun:
test
'
;
import
{
expect
,
test
,
describe
,
it
}
from
'
vi
test
'
;
import
type
{
GraphQueryResultMetaFromBackend
,
InsightModel
}
from
'
ts-common
'
;
import
{
processAlarmStats
}
from
'
./../../readers/statCheck
'
;
import
{
Logger
}
from
'
ts-common
'
;
Logger
.
excludedOwners
.
push
(
'
ts-common
'
);
Logger
.
excludedOwners
.
push
(
'
query-service
'
);
const
baseInsight
:
Omit
<
InsightModel
,
'
conditionsCheck
'
>
=
{
id
:
1
,
...
...
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