Skip to content

Commit 76e723f

Browse files
author
nicosammito
committed
test: remove console.log statements from test files for cleaner output
1 parent 5b7fb06 commit 76e723f

4 files changed

Lines changed: 0 additions & 12 deletions

File tree

src/extraction/getTypeVariant.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export const getTypeVariant = (
2626
const val: TargetType = {} as any;
2727
`;
2828

29-
console.log(sourceCode)
30-
3129
const fileName = `index.ts`;
3230
const host = createCompilerHost(fileName, sourceCode);
3331
const sourceFile = host.getSourceFile(fileName)!;

test/getReferenceSuggestions.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ describe('getReferenceSuggestions', () => {
128128

129129
const suggestions = getReferenceSuggestions(flow, "gid://sagittarius/NodeFunction/4", 0, FUNCTION_SIGNATURES, DATA_TYPES);
130130

131-
console.log(JSON.stringify(suggestions))
132-
133131
//expect(suggestions.some(s => !s.nodeFunctionId)).toBe(true);
134132
});
135133

@@ -501,8 +499,6 @@ describe('getReferenceSuggestions', () => {
501499

502500
const suggestions = getReferenceSuggestions(flow, "gid://sagittarius/NodeFunction/36", 0, FUNCTION_SIGNATURES, DATA_TYPES);
503501

504-
console.log(JSON.stringify(suggestions))
505-
506502
//expect(suggestions.some(s => !s.nodeFunctionId)).toBe(true);
507503
});
508504
});

test/getTypesFromNode.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ describe('getTypesFromNode', () => {
108108
};
109109
const result = getTypesFromNode(node, FUNCTION_SIGNATURES, DATA_TYPES);
110110

111-
console.log(result)
112-
113111
expect(result.returnType).toBe("string | number");
114112
expect(result.parameters[1]).toEqual('"id" | "name"');
115113
});
@@ -135,8 +133,6 @@ describe('getTypesFromNode', () => {
135133
};
136134
const result = getTypesFromNode(node, FUNCTION_SIGNATURES, DATA_TYPES);
137135

138-
console.log(result)
139-
140136
expect(result.returnType).toBe("number");
141137
expect(result.parameters[1]).toEqual('"id" | "name"');
142138
});

test/valueFromType.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ describe('getValueFromType', () => {
7373
const type = 'LIST<{ uid: TEXT, tags: LIST<NUMBER> }>';
7474
const result = getValueFromType(type, DATA_TYPES);
7575

76-
console.log(result)
77-
7876
expect(result.value).toEqual([
7977
{
8078
uid: '',

0 commit comments

Comments
 (0)