mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 13:31:19 +08:00
Storyshots: escape Windows fileNames
Issue: `multisnapshotWithOptions` + CSF doesn't work on Windows
This commit is contained in:
parent
6b18e28a75
commit
f623cd12d6
@ -16,7 +16,7 @@ module.exports = {
|
||||
return `${code};
|
||||
if(exports.default != null) {
|
||||
exports.default.parameters = exports.default.parameters || {};
|
||||
exports.default.parameters.fileName = '${fileName}';
|
||||
exports.default.parameters.fileName = '${fileName.replace(/\\/g, '\\\\')}';
|
||||
}
|
||||
`;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user