Skip to content

Commit e621efb

Browse files
author
Jan Jaap van Deursen
committed
Removes .svg?url references
1 parent fad3aba commit e621efb

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

custom.d.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// SPDX-License-Identifier: MPL-2.0
22
// Copyright (C) 2020 - 2021 Gemeente Amsterdam
3-
declare module '*.svg?url' {
4-
const url: string
5-
export default url
6-
}
73
declare module '*.svg' {
84
import type { FunctionComponent, SVGProps } from 'react'
95
const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement>>

internals/mocks/svg.ts

-9
This file was deleted.

jest.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ module.exports = {
3131
modulePathIgnorePatterns: ['<rootDir>/internals/', '<rootDir>/dist/'],
3232
moduleNameMapper: {
3333
'.*\\.css$': '<rootDir>/internals/mocks/cssModule.js',
34-
'.*\\.svg(\\?url)?$': '<rootDir>/internals/mocks/svg.ts',
3534
'.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
3635
'<rootDir>/internals/mocks/image.ts',
3736
},

0 commit comments

Comments
 (0)