Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/124250 #3002

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6a503da
Merge pull request #2713 from prefeiturasp/feature/104012-integracao-CES
rayanemsantos Dec 28, 2023
41e04c0
Merge pull request #2715 from prefeiturasp/feature/104012-integracao-CES
rayanemsantos Dec 28, 2023
57516e5
Merge pull request #2720 from prefeiturasp/story/89969
nederhayden Jan 4, 2024
b247367
Merge pull request #2722 from prefeiturasp/story/89969
nederhayden Jan 5, 2024
36a0d74
Merge pull request #2734 from prefeiturasp/story/108435
Jailsvs Jan 18, 2024
3b67400
Merge pull request #2737 from prefeiturasp/release
Jailsvs Jan 18, 2024
fded0a9
Merge pull request #2771 from prefeiturasp/story/109509
cleitondutra Feb 7, 2024
84d5164
Merge pull request #2774 from prefeiturasp/story/109509
nederhayden Feb 8, 2024
2664586
Merge pull request #2780 from prefeiturasp/story/105299
nederhayden Feb 14, 2024
c3d9616
Merge pull request #2783 from prefeiturasp/story/96713
DanylloAntunes Feb 15, 2024
0251350
Merge pull request #2797 from prefeiturasp/story/105435
nederhayden Feb 22, 2024
5a982a1
Merge pull request #2798 from prefeiturasp/story/102518
thiiagofernando Feb 22, 2024
9af5a38
Merge pull request #2799 from prefeiturasp/story/102518
thiiagofernando Feb 22, 2024
eab86fc
Merge branch 'release' of github.com:prefeiturasp/SME-NovoSGP-WebClie…
cleitondutra Feb 23, 2024
be30c73
Merge pull request #2804 from prefeiturasp/release_to_dev
cleitondutra Feb 23, 2024
1aff3d9
Merge pull request #2802 from prefeiturasp/story/102517
cleitondutra Feb 23, 2024
6ee1d73
Merge pull request #2812 from prefeiturasp/story/111255
DanylloAntunes Feb 28, 2024
aa40a14
Merge pull request #2840 from prefeiturasp/story/92540
Jailsvs Mar 8, 2024
9343104
Merge pull request #2907 from prefeiturasp/story/118351
Jailsvs May 8, 2024
0cbc61b
Merge pull request #2909 from prefeiturasp/story/118351
nederhayden May 8, 2024
acd6721
Merge pull request #2920 from prefeiturasp/story/115508
nederhayden May 22, 2024
39363a0
Merge pull request #2928 from prefeiturasp/story/121666
nederhayden May 24, 2024
02fc87e
Merge pull request #2925 from prefeiturasp/story/121475
cleitondutra May 31, 2024
efeb8bb
feat: Adiciona novo campo tipo valor sendo absoluto ou percental para…
felipepiorini Dec 30, 2024
d0f277a
fix: Remove console log
felipepiorini Dec 30, 2024
8c73016
test: Add preview de teste
felipepiorini Jan 6, 2025
fecac54
test: configuracoes e teste inicial relatorio frequencia
vferreira90 Jan 9, 2025
8ea01f6
test: Adiciona novos testes no componete ButtonGroup
felipepiorini Jan 10, 2025
38edae2
fix: Remove comentario
felipepiorini Jan 10, 2025
705cac7
test: Add teste no cardbody
felipepiorini Jan 10, 2025
5678862
test: Add teste no compoente row
felipepiorini Jan 10, 2025
3722a58
test: Adiciona teste no compoente campoConceito
felipepiorini Jan 10, 2025
a03d7bc
test: novas configs e novos testes
vferreira90 Jan 10, 2025
a386e81
teste: remocao cometario
vferreira90 Jan 10, 2025
6a516bd
test: novos testes de componentes
vferreira90 Jan 13, 2025
99ca39b
test: Adiciona rotas na execessao
felipepiorini Jan 13, 2025
0e482b6
Merge branch 'feature/124250' of https://github.com/prefeiturasp/SME-…
felipepiorini Jan 13, 2025
f6c1930
test: Ignora alguns arquivos de estilos
felipepiorini Jan 13, 2025
64f7efd
test: Adicona novos testes
felipepiorini Jan 15, 2025
1b1e276
test: Adiciona teste no componente listaPaginada
felipepiorini Jan 15, 2025
0130be6
fix: Ajusta o nome do campo enviado pro back
felipepiorini Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REACT_APP_URL_API=https://localhost:5001/api
REACT_APP_URL_API=https://hom2-novosgp.sme.prefeitura.sp.gov.br/api
REACT_APP_TRACKING_ID=null
REACT_APP_URL_SONDAGEM=http://localhost:61540
REACT_APP_URL_SIGNALR=https://localhost:5041
Expand Down
1 change: 1 addition & 0 deletions __mocks__/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = 'test-file-stub';
13 changes: 13 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
presets: [
'@babel/preset-env', // Transpila o código ES6+ para ES5
'@babel/preset-react', // Adiciona suporte para JSX
'@babel/preset-typescript', // Se estiver usando TypeScript
'@babel/preset-flow', // Se estiver usando Flow
],
plugins: [
'@babel/plugin-transform-runtime', // Necessário para @babel/runtime
'@babel/plugin-syntax-dynamic-import', // Suporte para importação dinâmica
'@babel/plugin-transform-modules-commonjs', // Para garantir que módulos ESM sejam transformados para CommonJS
],
};
68 changes: 68 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
module.exports = {
collectCoverage: true,
coverageReporters: ["text", "lcov", "json"],
coverageDirectory: "coverage",
preset: 'ts-jest',
transform: {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest", // Usar babel-jest para transformar os arquivos JS, TS, TSX
"^.+\\.(svg|jpg|jpeg|png|woff|woff2|eot|ttf|otf)$": "jest-transform-stub", // Mockar arquivos de imagem e SVG
},
testEnvironment: "jsdom",
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1",
"^~/(.*)$": "<rootDir>/src/@legacy/$1",
"\\.(svg|jpg|jpeg|png|woff|woff2|eot|ttf|otf)$": "<rootDir>/__mocks__/fileMock.js", // Mockar imagens e SVGs
"\\.(css|less|scss|css\\.js)$": "identity-obj-proxy", // Mockar arquivos CSS e .css.js
},
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
collectCoverageFrom: [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.test.{js,jsx,ts,tsx}",
"!src/**/__mocks__/**",
"!src/**/*.css.js", // Excluir arquivos .css.js da coleta de cobertura
],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
setupFilesAfterEnv: ["<rootDir>/src/setupTests.js"],
transformIgnorePatterns: [
"/node_modules/(?!antd|my-library-dir)/", // Permite que o Jest transforme arquivos dentro de 'antd'
"/node_modules/(?!react-quill)/"
],
globals: {
"ts-jest": {
isolatedModules: true,
},
},
extensionsToTreatAsEsm: [".ts", ".tsx", ".jsx"],
coveragePathIgnorePatterns: [
"/node_modules/",
"/build/",
"/dist/",
"/__mocks__/",
"/src/routes/",
"/src/core/constants",
"/src/core/config",
"/src/core/date",
"/src/core/dto",
"/src/core/entities",
"/src/core/enum",
"/src/core/hooks",
"/src/core/redux",
"/src/core/styles",
"/src/core/utils",
"/.*\.d\.ts$/",
"/.*\.config\.js$/",
"/.*\.test\.js$/",
"/.*\.css\.js$/",
"/src/index\\.tsx$",
"/src/@types",
"/src/app\\.tsx$",
"/.*\\/style\\.js$"
],
};
Loading