Skip to content
代码片段 群组 项目
提交 b2e9ccee 编辑于 作者: Paul Slaughter's avatar Paul Slaughter
浏览文件

Add trailing slash to jest configs for consistency

上级 dfe04c04
No related branches found
No related tags found
无相关合并请求
module.exports = () => { module.exports = () => {
return { return {
modulePaths: ['<rootDir>/spec/contracts/consumer/node_modules/'], modulePaths: ['<rootDir>/spec/contracts/consumer/node_modules/'],
roots: ['spec/contracts/consumer', 'ee/spec/contracts/consumer'], roots: ['spec/contracts/consumer/', 'ee/spec/contracts/consumer/'],
}; };
}; };
...@@ -10,9 +10,9 @@ if (IS_JH && fs.existsSync('./jh/jest.config.js')) { ...@@ -10,9 +10,9 @@ if (IS_JH && fs.existsSync('./jh/jest.config.js')) {
} else { } else {
module.exports = { module.exports = {
...baseConfig('spec/frontend', { ...baseConfig('spec/frontend', {
roots: ['<rootDir>/spec/frontend'], roots: ['<rootDir>/spec/frontend/'],
rootsEE: ['<rootDir>/ee/spec/frontend'], rootsEE: ['<rootDir>/ee/spec/frontend/'],
rootsJH: ['<rootDir>/jh/spec/frontend'], rootsJH: ['<rootDir>/jh/spec/frontend/'],
}), }),
}; };
} }
...@@ -2,7 +2,7 @@ const baseConfig = require('./jest.config.base'); ...@@ -2,7 +2,7 @@ const baseConfig = require('./jest.config.base');
module.exports = { module.exports = {
...baseConfig('spec/frontend', { ...baseConfig('spec/frontend', {
roots: ['<rootDir>/scripts/lib', '<rootDir>/spec/frontend'], roots: ['<rootDir>/scripts/lib/', '<rootDir>/spec/frontend/'],
}), }),
testMatch: [], testMatch: [],
}; };
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册