Skip to content

Commit

Permalink
test: ✅ Update tests for antd v4
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-sky committed Jun 2, 2020
1 parent 0a65360 commit bf02c13
Show file tree
Hide file tree
Showing 9 changed files with 853 additions and 1,069 deletions.
6 changes: 4 additions & 2 deletions .umirc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const deploy = process.env.DUMI_DEPLOY === 'true';

export default {
base: '/nornj/',
publicPath: '/nornj/',
Expand Down Expand Up @@ -49,8 +51,8 @@ export default {
],
mode: 'site',
title: 'NornJ',
logo: '/images/logo.png',
favicon: '/favicon.ico',
logo: `/${deploy ? 'nornj/' : ''}images/logo.png`,
favicon: `/${deploy ? 'nornj/' : ''}favicon.ico`,
//dynamicImport: {},
//manifest: {},
//links: [{ rel: 'manifest', href: '/asset-manifest.json' }],
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "npm run dev",
"dev": "dumi dev",
"build": "lerna run build",
"build:doc": "dumi build",
"build:doc": "cross-env DUMI_DEPLOY=true dumi build",
"lint": "yarn run lint:nj & yarn run lint:njr & yarn run lint:njl & yarn run lint:njx",
"lint:nj": "eslint packages/nornj --ext .js,.jsx,.ts,.tsx",
"lint:njr": "eslint packages/nornj-react --ext .js,.jsx,.ts,.tsx",
Expand Down Expand Up @@ -72,14 +72,14 @@
"@types/lodash": "^4.14.148",
"@typescript-eslint/eslint-plugin": "^2.5.0",
"@typescript-eslint/parser": "^2.5.0",
"babel-jest": "^24.9.0",
"babel-jest": "^26.0.1",
"codecov": "^3.0.0",
"commitlint": "^8.2.0",
"create-react-class": "^15.6.3",
"cross-env": "^5.1.0",
"dumi": "^1.0.26",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.11.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"eslint": "^6.5.1",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.16.0",
Expand Down
320 changes: 0 additions & 320 deletions packages/nornj-react/__tests__/antd.spec.js

This file was deleted.

Loading

0 comments on commit bf02c13

Please sign in to comment.