-
Notifications
You must be signed in to change notification settings - Fork 4
Relative paths are not transformed #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I tried: const { createSnapshotSerializer } = require('path-serializer')
const serializer = createSnapshotSerializer({
features: {
addDoubleQuotes: false,
escapeDoubleQuotes: false,
},
replacePost: [
{
match: /(['"`])(\.\.([\\/]))+([\w-]+\3)+[^\\/]*\1/g,
mark: sub => 'relative/' + sub.replaceAll('\\', '/'),
},
],
})
module.exports = serializer Well it works, with |
Hey, I add #13 for workaround to this feature if you wanto serialize relative path by default in |
you can review #15 What is the source of this regular |
The text was updated successfully, but these errors were encountered: