From 87fd316612cf37d4fce0f5eb887fea6e17e30b51 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 14 Nov 2024 17:22:52 +0100 Subject: [PATCH] remove useless SVGR tests --- .../__tests__/__snapshots__/base.test.ts.snap | 51 ----- .../_dogfooding/_pages tests/svg/hacker.svg | 188 ------------------ .../_dogfooding/_pages tests/svg/index.mdx | 4 - website/_dogfooding/_pages tests/svg/logo.svg | 13 -- 4 files changed, 256 deletions(-) delete mode 100644 website/_dogfooding/_pages tests/svg/hacker.svg delete mode 100644 website/_dogfooding/_pages tests/svg/logo.svg diff --git a/packages/docusaurus/src/webpack/__tests__/__snapshots__/base.test.ts.snap b/packages/docusaurus/src/webpack/__tests__/__snapshots__/base.test.ts.snap index 8f321b063446..88a08cdf5997 100644 --- a/packages/docusaurus/src/webpack/__tests__/__snapshots__/base.test.ts.snap +++ b/packages/docusaurus/src/webpack/__tests__/__snapshots__/base.test.ts.snap @@ -52,54 +52,3 @@ exports[`base webpack config creates webpack aliases 1`] = ` "react-dom": "../../../../../../../node_modules/react-dom", } `; - -exports[`base webpack config uses svg rule 1`] = ` -{ - "oneOf": [ - { - "issuer": { - "and": [ - /\\\\\\.\\(\\?:tsx\\?\\|jsx\\?\\|mdx\\?\\)\\$/i, - ], - }, - "use": [ - { - "loader": "/node_modules/@svgr/webpack/dist/index.js", - "options": { - "prettier": false, - "svgo": true, - "svgoConfig": { - "plugins": [ - { - "name": "preset-default", - "params": { - "overrides": { - "removeTitle": false, - "removeViewBox": false, - }, - }, - }, - ], - }, - "titleProp": true, - }, - }, - ], - }, - { - "use": [ - { - "loader": "/node_modules/url-loader/dist/cjs.js", - "options": { - "emitFile": true, - "fallback": "/node_modules/file-loader/dist/cjs.js", - "limit": 10000, - "name": "assets/images/[name]-[contenthash].[ext]", - }, - }, - ], - }, - ], - "test": /\\\\\\.svg\\$/i, -} -`; diff --git a/website/_dogfooding/_pages tests/svg/hacker.svg b/website/_dogfooding/_pages tests/svg/hacker.svg deleted file mode 100644 index 701730e08652..000000000000 --- a/website/_dogfooding/_pages tests/svg/hacker.svg +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - svgo --help - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/website/_dogfooding/_pages tests/svg/index.mdx b/website/_dogfooding/_pages tests/svg/index.mdx index a3c5c2718476..494bc5e21d10 100644 --- a/website/_dogfooding/_pages tests/svg/index.mdx +++ b/website/_dogfooding/_pages tests/svg/index.mdx @@ -1,5 +1,3 @@ -import Logo from './logo.svg'; -import Hacker from './hacker.svg'; import Integrations from './integrations.svg'; import OpenSource from './open-source.svg'; import Mascot from './mascot.svg'; @@ -8,8 +6,6 @@ import Mascot from './mascot.svg'; Have a bunch of SVGs, they're written to intentionally override each others styled when inlined on the same page. - - diff --git a/website/_dogfooding/_pages tests/svg/logo.svg b/website/_dogfooding/_pages tests/svg/logo.svg deleted file mode 100644 index c0167b6f6d35..000000000000 --- a/website/_dogfooding/_pages tests/svg/logo.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - -