-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
79 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
import { TestData } from '../../helpers/test-data'; | ||
|
||
export const gitHubTestData: TestData = { | ||
filesShouldExist: ['/.github'], | ||
filesShouldNotExist: ['/.gitlab'], | ||
filePaths: ['/.github'], | ||
filesShouldContain: [], | ||
}; | ||
|
||
export const gitLabTestData: TestData = { | ||
filesShouldExist: ['/.gitlab'], | ||
filesShouldNotExist: ['/.github'], | ||
filePaths: ['/.gitlab'], | ||
filesShouldContain: [], | ||
}; | ||
|
||
export const noVersionControlTestData: TestData = { | ||
filesShouldExist: [], | ||
filesShouldNotExist: ['/.github', '/.gitlab'], | ||
filePaths: ['/.github', '/.gitlab'], | ||
filesShouldContain: [], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,34 @@ | ||
import { TestData } from './test-data'; | ||
|
||
/** TestScenario group several add-ons tests | ||
* into a single generate command execution */ | ||
export type TestScenario = { | ||
options: any; // eslint-disable-line @typescript-eslint/no-explicit-any | ||
templateReference: string; | ||
testData: TestData; | ||
testData: { | ||
/** Path relative to the generated project root folder. | ||
* List files or folders that are expected to be included within | ||
* the generated project. | ||
* E.g. '/src/assets/stylesheets/application.scss` | ||
*/ | ||
filesShouldExist: string[]; | ||
/** Path relative to the generated project root folder. | ||
* List files or folders that are expected to NOT be included within | ||
* the generated project. | ||
* E.g. '/src/assets/stylesheets/vendor/bootstrap` | ||
*/ | ||
filesShouldNotExist: string[]; | ||
/** Path relative to the generated project root folder. | ||
* List what file is expected to contain what string. | ||
* E.g. | ||
* ``` | ||
* { | ||
* path: '/src/assets/stylesheets/application.scss`, | ||
* shouldContainString: 'vendor/bootstrap`, | ||
* } | ||
* ``` | ||
*/ | ||
filesShouldContain: { | ||
path: string; | ||
shouldContainString: string; | ||
}[]; | ||
}; | ||
}; |