export default defineConfig({
// test files
testMatch: '/__tests__/*.specs.js',
}).extend(
// for each test file a specific SnapshotPathTemplate
overrideSnapshotPathTemplate({
'/__tests__/testUser1.specs.js': {
snapshotPathTemplate: './__tests__/testUser1/{snapshotSuffix}/{arg}{ext}',
},
'/__tests__/testUser2.specs.js': {
snapshotPathTemplate: './__tests__/testUser2/{snapshotSuffix}/{arg}{ext}',
},
})
);
Such a configuration would be desirable.
Of course it may be possible in other ways?
Unfortunately I havn't found anything in the documentation so far.
Such a configuration would be desirable.
Of course it may be possible in other ways?
Unfortunately I havn't found anything in the documentation so far.