Skip to content

Commit 49d30fd

Browse files
authored
Merge pull request #75 from jest-community/revert-71-file-attr
Revert "Add file attr"
2 parents 43695d7 + b026223 commit 49d30fd

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

__tests__/__snapshots__/buildJsonResults.test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Object {
2929
Object {
3030
"_attr": Object {
3131
"classname": "a thing should foo",
32-
"file": "path/to/project1/__tests__/test1.test.js",
3332
"name": "project1-foo",
3433
"time": 0.003,
3534
},
@@ -56,7 +55,6 @@ Object {
5655
Object {
5756
"_attr": Object {
5857
"classname": "another thing should foo",
59-
"file": "path/to/project2/__tests__/test2.test.js",
6058
"name": "project2-foo",
6159
"time": 0.001,
6260
},

utils/buildJsonResults.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ module.exports = function (report, appDirectory, options) {
119119
_attr: {
120120
classname: replaceVars(options.classNameTemplate, testVariables),
121121
name: replaceVars(options.titleTemplate, testVariables),
122-
time: tc.duration / 1000,
123-
file: filepath
122+
time: tc.duration / 1000
124123
}
125124
}]
126125
};

0 commit comments

Comments
 (0)