Skip to content

Commit 68ba0ac

Browse files
chadius-maximusNicholas Pape
authored andcommitted
Removed rootdir as an arg for jest task (microsoft#460)
* reverted addition of rootDir as a parameter for jest task * rush change * removed rootDir arg from api * fixed remaining issues
1 parent b39a0f5 commit 68ba0ac

6 files changed

Lines changed: 12 additions & 14 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/gulp-core-build",
5+
"comment": "reverted addition of rootDir as a parameter for jest task",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/gulp-core-build",
10+
"email": "olfilato@users.noreply.github.com"
11+
}

‎common/reviews/api/gulp-core-build.api.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ interface IJestConfig {
197197
coverageReporters?: string[];
198198
isEnabled?: boolean;
199199
moduleDirectories?: string[];
200-
rootDir?: string;
201200
testPathIgnorePatterns?: string[];
202201
}
203202

‎common/reviews/api/node-library-build.api.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ interface IJestConfig {
189189
coverageReporters?: string[];
190190
isEnabled?: boolean;
191191
moduleDirectories?: string[];
192-
rootDir?: string;
193192
testPathIgnorePatterns?: string[];
194193
}
195194

‎common/reviews/api/web-library-build.api.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ interface IJestConfig {
189189
coverageReporters?: string[];
190190
isEnabled?: boolean;
191191
moduleDirectories?: string[];
192-
rootDir?: string;
193192
testPathIgnorePatterns?: string[];
194193
}
195194

‎core-build/gulp-core-build/src/tasks/JestTask.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ export interface IJestConfig {
5252
* Same as Jest CLI option moduleDirectories
5353
*/
5454
moduleDirectories?: string[];
55-
56-
/**
57-
* Same as Jest CLI option rootDir
58-
*/
59-
rootDir?: string;
6055
}
6156

6257
const DEFAULT_JEST_CONFIG_FILE_NAME: string = 'jest.config.json';
@@ -127,8 +122,7 @@ export class JestTask extends GulpTask<IJestConfig> {
127122
this.taskConfig.moduleDirectories :
128123
['node_modules', this.buildConfig.libFolder],
129124
reporters: [path.join(__dirname, 'JestReporter.js')],
130-
rootDir: !!this.taskConfig.rootDir ?
131-
this.taskConfig.rootDir : this.buildConfig.rootPath,
125+
rootDir: this.buildConfig.rootPath,
132126
runInBand: true,
133127
testMatch: ['**/*.test.js?(x)'],
134128
testPathIgnorePatterns: this.taskConfig.testPathIgnorePatterns,

‎core-build/gulp-core-build/src/tasks/jest.schema.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@
5353
"items": {
5454
"type": "string"
5555
}
56-
},
57-
"rootDir": {
58-
"description": "Same as Jest CLI option rootDir",
59-
"type": "string"
6056
}
6157
},
6258
"additionalProperties": false

0 commit comments

Comments
 (0)