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:
commit
348dd91132
9 changed files with 19 additions and 2 deletions
2
.idea/Modulo unico.iml
generated
2
.idea/Modulo unico.iml
generated
|
@ -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>
|
||||
|
|
|
@ -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
10
nest_frontend/App.test.js
Normal 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()
|
||||
});
|
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…
Add table
Reference in a new issue