Skip to content

Commit

Permalink
Move test output to packages/generator-langium/test/genetator-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Jun 14, 2024
1 parent 16211b6 commit 0cb80a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ node_modules/
*.vsix
*.tsbuildinfo
hello-world
examples/generator-tests
generator-tests
6 changes: 3 additions & 3 deletions packages/generator-langium/test/yeoman-generator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('Check yeoman generator works', () => {
const context = createHelpers({}).run(path.join(moduleRoot));

// generate in examples
const targetRoot = path.resolve(packageTestDir, '../../../examples/generator-tests/test1');
const targetRoot = path.resolve(packageTestDir, './generator-tests/test1');
const extensionName = answersForCore.extensionName;

// remove examples/hello-world (if existing) now and finally (don't delete everything else in examples)
Expand Down Expand Up @@ -129,7 +129,7 @@ describe('Check yeoman generator works', () => {
const context = createHelpers({}).run<LangiumGenerator>(path.join(moduleRoot));

// generate in examples
const targetRoot = path.resolve(packageTestDir, '../../../examples/generator-tests/test2');
const targetRoot = path.resolve(packageTestDir, './generator-tests/test2');
const extensionName = 'hello-world';

// remove examples/hello-world (if existing) now and finally (don't delete everything else in examples)
Expand Down Expand Up @@ -179,7 +179,7 @@ describe('Check yeoman generator works', () => {
const context = createHelpers({}).run<LangiumGenerator>(path.join(moduleRoot));

// generate in examples
const targetRoot = path.resolve(packageTestDir, '../../../examples/generator-tests/test3');
const targetRoot = path.resolve(packageTestDir, './generator-tests/test3');
const extensionName = 'hello-world';

// remove examples/hello-world (if existing) now and finally (don't delete everything else in examples)
Expand Down
4 changes: 4 additions & 0 deletions packages/generator-langium/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@
"include": [
"test/**/*",
]
,
"exclude": [
"test/generator-tests",
]
}

0 comments on commit 0cb80a2

Please sign in to comment.