Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
UO277876 committed May 2, 2022
1 parent 106ec9a commit 8dfc967
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions restapi/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import express, {Request, Response} from 'express';
import express from 'express';
import mongoose from 'mongoose';
import cors from "cors";
import { json } from 'body-parser';
import config from './config'
import { productoRouter } from './rutas/productoRutas';
Expand All @@ -8,10 +9,11 @@ import { pedidoRouter } from './rutas/pedidoRutas';
import http from 'http';
import "dotenv/config";
import path from "path";
const app = express()

const app = express()

app.use(json())
app.use(cors())

app.use(productoRouter)
app.use(usuarioRouter)
Expand Down
5 changes: 5 additions & 0 deletions webapp/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
export default {
collectCoverage: true,
collectCoverageFrom: [ "src/components/Cart/**","src/components/Details/**",
"src/components/Fragments/**","src/components/Home/**", "src/components/Login/**",
"src/components/Requets/**", "src/components/Developers/**" ,"src/App.tsx"],
transform: {
"^.+\\.tsx?$": "ts-jest"
},

}
7 changes: 7 additions & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
"eject": "react-scripts eject",
"prod": "ts-node-dev ./server.ts"
},
"jest": {
"collectCoverageFrom": [
"src/components/Cart/**","src/components/Details/**",
"src/components/Fragments/**","src/components/Home/**", "src/components/Login/**",
"src/components/Requets/**", "src/components/Developers/**" ,"src/App.tsx"
]
},
"eslintConfig": {
"extends": [
"react-app",
Expand Down
File renamed without changes.

0 comments on commit 8dfc967

Please sign in to comment.