Skip to content

Commit

Permalink
Adds more debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ncordon committed Nov 29, 2024
1 parent c34080e commit 782db9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { testData } from '@neo4j-cypher/language-support';
import { expect, test } from '@playwright/experimental-ct-react';
import { CypherEditor } from '../CypherEditor';
import { CypherEditorPage } from './e2eUtils';
Expand Down Expand Up @@ -95,7 +94,7 @@ test.only('Semantic errors work in firefox', async ({
const editorPage = new CypherEditorPage(page);
const query = 'MATCH (n:OperationalPoint)--(m:OperationalPoint) RETURN s,m,n';

await mount(<CypherEditor value={query} schema={testData.mockSchema} />);
await mount(<CypherEditor value={query} />);

await editorPage.checkErrorMessage('s,m,n', 'Variable `s` not defined');
});
Expand All @@ -105,7 +104,6 @@ test.only('Semantic errors are surfaced when there are no syntactic errors', asy
page,
mount,
}) => {
test.skip(browserName !== 'firefox');
const editorPage = new CypherEditorPage(page);
const query = 'MATCH (n) RETURN m';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const semanticAnalysisLinter: (config: CypherConfig) => Extension = (
config,
) =>
linter(async (view) => {
console.log('Entra al linter');
if (!config.lint) {
return [];
}
Expand Down Expand Up @@ -76,7 +77,7 @@ export const semanticAnalysisLinter: (config: CypherConfig) => Extension = (
config.schema ?? {},
);
const result = await lastSemanticJob;
console.log('after lastSemanticJob');
console.log('before lastSemanticJob');

return result.map((diag) => {
return {
Expand Down

0 comments on commit 782db9f

Please sign in to comment.