chore: fix terser (#39617)

* chore: fix terser

* chore: clean up
This commit is contained in:
二货爱吃白萝卜 2022-12-17 22:48:45 +08:00 committed by GitHub
parent f3231bc375
commit 1b03cfdd29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 16 deletions

View File

@ -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",

View File

@ -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();
},
);