mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
🔨 Fix frontend test framework
This commit is contained in:
parent
e9922fb483
commit
4a7fadbeb5
8 changed files with 9 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
||||||
<sourceFolder url="file://$MODULE_DIR$/nest_crawler" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/nest_crawler" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/nest_database" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/nest_database" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/nest_frontend" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/nest_frontend" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/nest_frontend/public" type="java-resource" />
|
<sourceFolder url="file://$MODULE_DIR$/public" type="java-resource" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/docs/build" />
|
<excludeFolder url="file://$MODULE_DIR$/docs/build" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/legacy" />
|
<excludeFolder url="file://$MODULE_DIR$/legacy" />
|
||||||
</content>
|
</content>
|
||||||
|
|
|
@ -1,10 +1,17 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
paths: function (paths, env) {
|
paths: (paths, env) => {
|
||||||
paths.appIndexJs = path.resolve(__dirname, 'nest_frontend/index.js');
|
paths.appIndexJs = path.resolve(__dirname, 'nest_frontend/index.js');
|
||||||
paths.appSrc = path.resolve(__dirname, 'nest_frontend');
|
paths.appSrc = path.resolve(__dirname, 'nest_frontend');
|
||||||
paths.appPublic = path.resolve(__dirname, 'nest_frontend/public');
|
paths.appPublic = path.resolve(__dirname, 'nest_frontend/public');
|
||||||
return paths;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Loading…
Reference in a new issue