Skip to content

Commit

Permalink
Merge pull request #1861 from compdemocracy/te-report-refactor-2
Browse files Browse the repository at this point in the history
Te report refactor 2
  • Loading branch information
tevko authored Dec 19, 2024
2 parents 58bdf43 + a5834fd commit 8660e86
Show file tree
Hide file tree
Showing 62 changed files with 2,947 additions and 2,418 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ build/
prod.env
xids.csv
preprod.env
.venv
1 change: 1 addition & 0 deletions client-report/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ const config = {

// Whether to use watchman for file crawling
// watchman: true,
setupFilesAfterEnv: ["<rootDir>/setupTests.js"]
};

module.exports = config;
90 changes: 90 additions & 0 deletions client-report/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client-report/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@babel/preset-react": "~7.18.6",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"babel-jest": "^29.7.0",
"babel-loader": "~9.1.2",
"compression-webpack-plugin": "^10.0.0",
Expand All @@ -32,6 +33,7 @@
"html-webpack-plugin": "^5.5.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"mini-css-extract-plugin": "^2.7.6",
"webpack": "~5.88.0",
"webpack-cli": "~5.1.4",
Expand Down
5 changes: 5 additions & 0 deletions client-report/setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// import fetch from 'node-fetch';
import '@testing-library/jest-dom';
import fetchMock from 'jest-fetch-mock';

fetchMock.enableMocks();
Loading

0 comments on commit 8660e86

Please sign in to comment.