2021-05-13 17:24:44 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
2021-05-13 22:02:24 +00:00
|
|
|
paths: (paths, env) => {
|
2021-05-13 17:24:44 +00:00
|
|
|
paths.appIndexJs = path.resolve(__dirname, 'nest_frontend/index.js');
|
|
|
|
paths.appSrc = path.resolve(__dirname, 'nest_frontend');
|
|
|
|
return paths;
|
|
|
|
},
|
2021-05-13 22:02:24 +00:00
|
|
|
|
|
|
|
jest: (config) => {
|
|
|
|
config.roots = config.roots.map(root => root.replace("src", "nest_frontend"))
|
|
|
|
config.collectCoverageFrom = config.collectCoverageFrom.map(root => root.replace("src", "nest_frontend"))
|
|
|
|
config.testMatch = config.testMatch.map(root => root.replace("src", "nest_frontend"))
|
|
|
|
return config;
|
|
|
|
}
|
2021-05-13 17:24:44 +00:00
|
|
|
}
|