Skip to content

Commit

Permalink
[chore] Set testURL for Jest to avoid jestjs/jest#6769
Browse files Browse the repository at this point in the history
[util] Set testURL for Jest to avoid jestjs/jest#6769

[validation] Set testURL for Jest to avoid jestjs/jest#6769

[schema] Set testURL for Jest to avoid jestjs/jest#6769

[export] Set testURL for Jest to avoid jestjs/jest#6769
  • Loading branch information
skogsmaskin committed Dec 17, 2018
1 parent b513fab commit e9f912d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/@sanity/export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@
"bugs": {
"url": "https://github.com/sanity-io/sanity/issues"
},
"homepage": "https://www.sanity.io/"
"homepage": "https://www.sanity.io/",
"jest": {
"verbose": true,
"testURL": "http://localhost/"
}
}
3 changes: 2 additions & 1 deletion packages/@sanity/schema/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
transform: {'^.+\\.jsx?$': 'babel-jest'},
testRegex: 'test\\/.*\\.test\\.js'
testRegex: 'test\\/.*\\.test\\.js',
testURL: 'http://localhost/'
}
4 changes: 4 additions & 0 deletions packages/@sanity/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"content",
"util"
],
"jest": {
"verbose": true,
"testURL": "http://localhost/"
},
"author": "Sanity.io <[email protected]>",
"license": "MIT",
"bugs": {
Expand Down
3 changes: 2 additions & 1 deletion packages/@sanity/validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
},
"jest": {
"verbose": true,
"collectCoverage": true
"collectCoverage": true,
"testURL": "http://localhost/"
}
}

0 comments on commit e9f912d

Please sign in to comment.