Skip to content

Commit

Permalink
[base] Mock 'part:@sanity/base/schema?' to pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin authored and bjoerge committed Dec 18, 2018
1 parent bafb410 commit f812d40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@sanity/base/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
transform: {'^.+\\.jsx?$': 'babel-jest'},
testRegex: 'test\\/.*\\.test\\.js'
testRegex: 'test\\/.*\\.test\\.js',
testURL: 'http://localhost/',
moduleNameMapper: {
'^part:@sanity/base/schema?': '<rootDir>/test/mocks/schema.js'
}
}
1 change: 1 addition & 0 deletions packages/@sanity/base/test/mocks/schema.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {}

0 comments on commit f812d40

Please sign in to comment.