初始化jest
parents
Showing
.editorconfig
0 → 100644
.gitignore
0 → 100644
.prettierignore
0 → 100644
.prettierrc
0 → 100644
.umirc.ts
0 → 100644
README.md
0 → 100644
jest.config.ts
0 → 100644
mock/.gitkeep
0 → 100644
mock/todos.ts
0 → 100644
package.json
0 → 100644
{ | ||
"private": true, | ||
"scripts": { | ||
"start": "umi dev", | ||
"build": "umi build", | ||
"postinstall": "umi generate tmp", | ||
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'", | ||
"test": "jest --watchAll", | ||
"test:coverage": "jest --coverage" | ||
}, | ||
"gitHooks": { | ||
"pre-commit": "lint-staged" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,less,md,json}": [ | ||
"prettier --write" | ||
], | ||
"*.ts?(x)": [ | ||
"prettier --parser=typescript --write" | ||
] | ||
}, | ||
"dependencies": { | ||
"@ant-design/pro-layout": "^6.5.0", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "12.1.5", | ||
"@types/jest": "^29.4.0", | ||
"axios": "^1.3.4", | ||
"react": "17.x", | ||
"react-dom": "17.x", | ||
"umi": "^3.5.36" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^17.0.0", | ||
"@types/react-dom": "^17.0.0", | ||
"@umijs/preset-react": "1.x", | ||
"@umijs/test": "^3.5.36", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest-environment-jsdom-fourteen": "^1.0.1", | ||
"lint-staged": "^10.0.7", | ||
"prettier": "^2.2.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.1.2", | ||
"yorkie": "^2.0.0" | ||
} | ||
} |
src/pages/404.jsx
0 → 100644
src/pages/index.less
0 → 100644
src/pages/index.tsx
0 → 100644
src/pages/todolist/index.tsx
0 → 100644
src/pages/user/index.less
0 → 100644
src/pages/user/index.tsx
0 → 100644
src/util/config.ts
0 → 100644
src/util/demo.ts
0 → 100644
tsconfig.json
0 → 100644
typings.d.ts
0 → 100644
Please
register
or
sign in
to comment