Browse Source

test: fix ci error (#23382)

pull/23608/head
偏右 5 years ago
committed by GitHub
parent
commit
df2425652c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/table/__tests__/__snapshots__/demo.test.js.snap
  2. 1
      package.json
  3. 13
      webpack.config.js

4
components/table/__tests__/__snapshots__/demo.test.js.snap

@ -11868,7 +11868,6 @@ exports[`renders ./components/table/demo/resizable-column.md correctly 1`] = `
</span>
<span
class="react-resizable-handle react-resizable-handle-se"
style="touch-action:none"
/>
</th>
<th
@ -11890,7 +11889,6 @@ exports[`renders ./components/table/demo/resizable-column.md correctly 1`] = `
</span>
<span
class="react-resizable-handle react-resizable-handle-se"
style="touch-action:none"
/>
</th>
<th
@ -11912,7 +11910,6 @@ exports[`renders ./components/table/demo/resizable-column.md correctly 1`] = `
</span>
<span
class="react-resizable-handle react-resizable-handle-se"
style="touch-action:none"
/>
</th>
<th
@ -11934,7 +11931,6 @@ exports[`renders ./components/table/demo/resizable-column.md correctly 1`] = `
</span>
<span
class="react-resizable-handle react-resizable-handle-se"
style="touch-action:none"
/>
</th>
<th

1
package.json

@ -146,7 +146,6 @@
"devDependencies": {
"@ant-design/colors": "^3.2.2",
"@ant-design/tools": "^8.1.0",
"@packtracker/webpack-plugin": "^2.0.1",
"@qixian.cs/github-contributors-list": "^1.0.3",
"@sentry/browser": "^5.4.0",
"@stackblitz/sdk": "^1.3.0",

13
webpack.config.js

@ -1,7 +1,6 @@
/* eslint no-param-reassign: 0 */
// This config is for building dist files
const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig');
const PacktrackerPlugin = require('@packtracker/webpack-plugin');
const { webpack } = getWebpackConfig;
@ -36,18 +35,6 @@ if (process.env.RUN_ENV === 'PRODUCTION') {
ignoreMomentLocale(config);
externalMoment(config);
addLocales(config);
// skip codesandbox ci
if (!process.env.CSB_REPO) {
// https://docs.packtracker.io/uploading-your-webpack-stats/webpack-plugin
config.plugins.push(
new PacktrackerPlugin({
project_token: '30c6a021-96c0-4d67-8bd2-0d2fcbd8962b',
upload: process.env.CI === 'true',
fail_build: false,
exclude_assets: name => !['antd.min.js', 'antd.min.css'].includes(name),
}),
);
}
});
}

Loading…
Cancel
Save