Skip to content

Commit fefd716

Browse files
Lewis Lloberamrmckeb
Lewis Llobera
authored andcommitted
Fix variable name casing in fileTransform (#7752)
1 parent c0d73ba commit fefd716

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-scripts/config/jest/fileTransform.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ module.exports = {
1313
if (filename.match(/\.svg$/)) {
1414
// Based on how SVGR generates a component name:
1515
// https://github.com/smooth-code/svgr/blob/01b194cf967347d43d4cbe6b434404731b87cf27/packages/core/src/state.js#L6
16-
const pascalCaseFileName = camelcase(path.parse(filename).name, {
16+
const pascalCaseFilename = camelcase(path.parse(filename).name, {
1717
pascalCase: true,
1818
});
19-
const componentName = `Svg${pascalCaseFileName}`;
19+
const componentName = `Svg${pascalCaseFilename}`;
2020
return `const React = require('react');
2121
module.exports = {
2222
__esModule: true,

0 commit comments

Comments
 (0)