mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
17 lines
No EOL
675 B
JavaScript
17 lines
No EOL
675 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
paths: (paths, env) => {
|
|
paths.appIndexJs = path.resolve(__dirname, 'nest_frontend/index.js');
|
|
paths.appSrc = path.resolve(__dirname, 'nest_frontend');
|
|
paths.appPublic = path.resolve(__dirname, 'nest_frontend/public');
|
|
return paths;
|
|
},
|
|
|
|
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;
|
|
}
|
|
} |