1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2025-02-16 12:43:58 +00:00

Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
stefanogoldoni 2021-05-14 00:13:51 +02:00
commit 348dd91132
9 changed files with 19 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;
}
}

10
nest_frontend/App.test.js Normal file
View file

@ -0,0 +1,10 @@
// Link.react.test.js
import React from 'react'
import '@testing-library/jest-dom/extend-expect'
import { render, screen } from '@testing-library/react'
import App from "./App"
test('App renders without exploding', () => {
render(<App/>)
expect(screen.getByRole("main")).toBeVisible()
});

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