1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-21 20:44:18 +00:00

🔨 Fix frontend test framework

This commit is contained in:
Steffo 2021-05-14 00:02:24 +02:00
parent e9922fb483
commit 4a7fadbeb5
Signed by: steffo
GPG key ID: 6965406171929D01
8 changed files with 9 additions and 2 deletions

View file

@ -17,7 +17,7 @@
<sourceFolder url="file://$MODULE_DIR$/nest_crawler" 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/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$/legacy" />
</content>

View file

@ -1,10 +1,17 @@
const path = require('path');
module.exports = {
paths: function (paths, env) {
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;
}
}

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View file

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB