Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Don't remove test.js files after executing che-theia production #925

Merged
merged 2 commits into from
Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion generator/src/conf/.yarnclean
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ __tests__
test
tests
powered-test
test.js
*.spec.js
testData

Expand Down
4 changes: 3 additions & 1 deletion generator/tests/production/production.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ describe('Test production', () => {

await fs.ensureDir(dependencyDir1);
await fs.writeFile(path.join(dependencyDir1, 'lib1.js'), '');
await fs.writeFile(path.join(dependencyDir1, 'test.js'), '');

const srcGenDir1 = path.join(examplesAssemblyFolderTmp, 'src-gen/foo');
await fs.ensureDir(srcGenDir1);
Expand Down Expand Up @@ -81,7 +82,8 @@ describe('Test production', () => {
expect(fs.existsSync(path.join(productionReady, 'lib/dummy/mylib'))).toBeTruthy();

// check dependencies are there
expect(fs.existsSync(path.join(productionReady, dependency1Name))).toBeTruthy();
expect(fs.existsSync(path.join(productionReady, dependency1Name, 'lib1.js'))).toBeTruthy();
expect(fs.existsSync(path.join(productionReady, dependency1Name, 'test.js'))).toBeTruthy();
});

test('Test invalid dependency', async () => {
Expand Down