Browse Source

chore: fix terser (#39617)

* chore: fix terser

* chore: clean up
pull/39622/head
二货爱吃白萝卜 2 years ago
committed by GitHub
parent
commit
1b03cfdd29
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      package.json
  2. 16
      tests/shared/demoTest.tsx

1
package.json

@ -280,6 +280,7 @@
"stylelint-config-standard": "^29.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.1.0",
"sylvanas": "^0.6.1",
"terser": "^5.16.1",
"ts-node": "^10.8.2",
"typedoc": "^0.23.21",
"typescript": "~4.9.3",

16
tests/shared/demoTest.tsx

@ -117,22 +117,6 @@ function baseText(doInject: boolean, component: string, options: Options = {}) {
html,
}).toMatchSnapshot();
// if (typeof document === 'undefined') {
// // Server
// expect(() => {
// renderToString(Demo);
// }).not.toThrow();
// } else {
// // Client
// const { container } = render(Demo);
// ariaConvert(container);
// const { children } = container;
// const child = children.length > 1 ? Array.from(children) : children[0];
// expect(child).toMatchSnapshot();
// }
errSpy.mockRestore();
},
);

Loading…
Cancel
Save