-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Clear and concise description of the problem
currently we can have:
export default defineConfig({
test: {
resolveSnapshotPath(path, extension) {
return path.replace(/\/([^/]+)\.spec\.ts$/, `/__snapshots__/$1-vue.spec.ts${extension}`)
}
}
})but we cannot have:
export default defineConfig({
projects: [
{
name: "vue",
test: {
resolveSnapshotPath(path, extension) {
return path.replace(/\/([^/]+)\.spec\.ts$/, `/__snapshots__/$1-vue.spec.ts${extension}`)
}
}
}
]
})
Suggested solution
allow resolveSnapshotPath for each project.
Alternative
No response
Additional context
partially related to #1620
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.