Skip to content

Commit

Permalink
remove useless SVGR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 14, 2024
1 parent b50845b commit 0b93cdb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
34 changes: 0 additions & 34 deletions packages/docusaurus-utils/src/__tests__/webpackUtils.test.ts

This file was deleted.

16 changes: 0 additions & 16 deletions packages/docusaurus/src/webpack/__tests__/base.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,4 @@ describe('base webpack config', () => {
);
expect(relativeAliases).toMatchSnapshot();
});

it('uses svg rule', async () => {
const config = await createBaseConfig({
props,
isServer: false,
minify: false,
faster: DEFAULT_FASTER_CONFIG,
configureWebpackUtils: await createTestConfigureWebpackUtils(),
});

const svgRule = (config.module?.rules ?? []).find((rule) => {
return rule && (rule as any).test.toString().includes('.svg');
});
expect(svgRule).toBeDefined();
expect(svgRule).toMatchSnapshot();
});
});

0 comments on commit 0b93cdb

Please sign in to comment.