Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed May 8, 2022
1 parent fba8f47 commit 94fe10d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"@umijs/fabric": "^2.0.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
"cross-env": "^7.0.0",
"dumi": "^1.1.0",
"enzyme": "^3.1.1",
"enzyme-adapter-react-16": "^1.0.1",
"enzyme-to-json": "^3.1.2",
"eslint": "^8.15.0",
"eslint": "^7.1.0",
"father": "^2.29.6",
"glob": "^8.0.1",
"np": "^7.2.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
global.requestAnimationFrame = cb => setTimeout(cb, 0);
global.requestAnimationFrame = (cb) => setTimeout(cb, 0);

const Enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-16');
const Adapter = require('@wojtekmaj/enzyme-adapter-react-17');

Enzyme.configure({ adapter: new Adapter() });
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"],
"rc-progress": ["src/index.tsx"]
"rc-progress": ["src/index.ts"]
}
}
}

0 comments on commit 94fe10d

Please sign in to comment.