fix: Data loading state not reset when props change to PaginatedList (#2254)

* fix: Data loading state not reset when significant props change to PaginatedList

closes #2251

* test: Add enzyme and component test
This commit is contained in:
Tom Moor
2021-06-26 21:49:25 -07:00
committed by GitHub
parent 31180619e1
commit 088353d61f
10 changed files with 598 additions and 155 deletions

30
app/.jestconfig.json Normal file
View File

@@ -0,0 +1,30 @@
{
"testURL": "http://localhost",
"verbose": false,
"rootDir": "..",
"roots": [
"<rootDir>/app",
"<rootDir>/shared"
],
"moduleNameMapper": {
"^shared/(.*)$": "<rootDir>/shared/$1",
"^.*[.](gif|ttf|eot|svg)$": "<rootDir>/__test__/fileMock.js"
},
"moduleFileExtensions": [
"js",
"jsx",
"json"
],
"moduleDirectories": [
"node_modules"
],
"modulePaths": [
"<rootDir>/app"
],
"setupFiles": [
"<rootDir>/__mocks__/window.js"
],
"setupFilesAfterEnv": [
"./app/test/setup.js"
]
}