Skip to content

Commit 9af3cd0

Browse files
committed
move parser helper to test directory
1 parent cfe0b00 commit 9af3cd0

17 files changed

+117
-16
lines changed

test/parsing/ParsingTestHelper.ts renamed to test/ParsingTestHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from 'vitest'
22
import { LangiumDocument } from 'langium'
3-
import { ContextMappingModel } from '../../src/language/generated/ast.js'
3+
import { ContextMappingModel } from '../src/language/generated/ast.js'
44
import { parseHelper } from 'langium/test'
55

66
export async function parseValidInput (parse: ReturnType<typeof parseHelper<ContextMappingModel>>, input: string): Promise<LangiumDocument<ContextMappingModel>> {

test/parsing/CommentParsing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { clearDocuments, parseHelper } from 'langium/test'
33
import { ContextMappingModel } from '../../src/language/generated/ast.js'
44
import { EmptyFileSystem, LangiumDocument } from 'langium'
55
import { afterEach, beforeAll, describe, test } from 'vitest'
6-
import { parseValidInput } from './ParsingTestHelper.js'
6+
import { parseValidInput } from '../ParsingTestHelper.js'
77

88
let services: ReturnType<typeof createContextMapperDslServices>
99
let parse: ReturnType<typeof parseHelper<ContextMappingModel>>

test/parsing/ContextMappingModelParsing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseHelper } from 'langium/test'
33
import { ContextMappingModel } from '../../src/language/generated/ast.js'
44
import { EmptyFileSystem, LangiumDocument } from 'langium'
55
import { beforeAll, describe, expect, test } from 'vitest'
6-
import { parseValidInput } from './ParsingTestHelper.js'
6+
import { parseValidInput } from '../ParsingTestHelper.js'
77

88
let services: ReturnType<typeof createContextMapperDslServices>
99
let parse: ReturnType<typeof parseHelper<ContextMappingModel>>

test/parsing/ExampleFileParsing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ContextMappingModel } from '../../src/language/generated/ast.js'
44
import { EmptyFileSystem } from 'langium'
55
import { beforeAll, describe, test } from 'vitest'
66
import fs from 'fs'
7-
import { parseValidInput } from './ParsingTestHelper.js'
7+
import { parseValidInput } from '../ParsingTestHelper.js'
88
import path from 'node:path'
99

1010
let services: ReturnType<typeof createContextMapperDslServices>

test/parsing/boundedContext/AggregateParsing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseHelper } from 'langium/test'
33
import { Aggregate, ContextMappingModel } from '../../../src/language/generated/ast.js'
44
import { EmptyFileSystem, LangiumDocument } from 'langium'
55
import { beforeAll, describe, expect, test } from 'vitest'
6-
import { parseValidInput } from '../ParsingTestHelper.js'
6+
import { parseValidInput } from '../../ParsingTestHelper.js'
77

88
let services: ReturnType<typeof createContextMapperDslServices>
99
let parse: ReturnType<typeof parseHelper<ContextMappingModel>>

test/parsing/boundedContext/BoundedContextParsing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseHelper } from 'langium/test'
33
import { ContextMappingModel } from '../../../src/language/generated/ast.js'
44
import { EmptyFileSystem, LangiumDocument } from 'langium'
55
import { beforeAll, describe, test, expect } from 'vitest'
6-
import { parseValidInput } from '../ParsingTestHelper.js'
6+
import { parseValidInput } from '../../ParsingTestHelper.js'
77

88
let services: ReturnType<typeof createContextMapperDslServices>
99
let parse: ReturnType<typeof parseHelper<ContextMappingModel>>

test/parsing/boundedContext/SculptorModuleParsing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseHelper } from 'langium/test'
33
import { ContextMappingModel, SculptorModule } from '../../../src/language/generated/ast.js'
44
import { EmptyFileSystem, LangiumDocument } from 'langium'
55
import { beforeAll, describe, expect, test } from 'vitest'
6-
import { parseValidInput } from '../ParsingTestHelper.js'
6+
import { parseValidInput } from '../../ParsingTestHelper.js'
77

88
let services: ReturnType<typeof createContextMapperDslServices>
99
let parse: ReturnType<typeof parseHelper<ContextMappingModel>>

test/parsing/contextMap/ContextMapParsing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseHelper } from 'langium/test'
33
import { ContextMappingModel } from '../../../src/language/generated/ast.js'
44
import { EmptyFileSystem, LangiumDocument } from 'langium'
55
import { beforeAll, describe, expect, test } from 'vitest'
6-
import { parseValidInput } from '../ParsingTestHelper.js'
6+
import { parseValidInput } from '../../ParsingTestHelper.js'
77

88
let services: ReturnType<typeof createContextMapperDslServices>
99
let parse: ReturnType<typeof parseHelper<ContextMappingModel>>

test/parsing/contextMap/RelationshipParsing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from '../../../src/language/generated/ast.js'
99
import { EmptyFileSystem, LangiumDocument } from 'langium'
1010
import { beforeAll, describe, expect, test } from 'vitest'
11-
import { parseValidInput } from '../ParsingTestHelper.js'
11+
import { parseValidInput } from '../../ParsingTestHelper.js'
1212

1313
let services: ReturnType<typeof createContextMapperDslServices>
1414
let parse: ReturnType<typeof parseHelper<ContextMappingModel>>

test/parsing/domain/DomainParsing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseHelper } from 'langium/test'
33
import { ContextMappingModel } from '../../../src/language/generated/ast.js'
44
import { EmptyFileSystem, LangiumDocument } from 'langium'
55
import { beforeAll, describe, expect, test } from 'vitest'
6-
import { parseValidInput } from '../ParsingTestHelper.js'
6+
import { parseValidInput } from '../../ParsingTestHelper.js'
77

88
let services: ReturnType<typeof createContextMapperDslServices>
99
let parse: ReturnType<typeof parseHelper<ContextMappingModel>>

0 commit comments

Comments
 (0)