Skip to content
Snippets Groups Projects
Commit 46bd5073 authored by Marcos Pieras's avatar Marcos Pieras
Browse files

test: adds ts logger

parent 8891e85d
No related branches found
No related tags found
5 merge requests!42test: adds return message to handle e2e tests,!40test: adds test on populate template,!37chore: adds precommit and commitlint,!35test: adds tests on statcheck and diffcheck,!34test: adds tests for query service
Pipeline #146815 passed
......@@ -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"
......
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) {
......
......@@ -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', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment