Add AlbumCard UI tests

- add libraries for component UI testing
- implement AlbumCard UI tests
This commit is contained in:
Jaime Baez
2022-09-07 16:00:57 +02:00
parent 92c4f0598b
commit f476bd985b
6 changed files with 506 additions and 10 deletions

View File

@@ -178,14 +178,17 @@ export default {
// A map from regular expressions to paths to transformers
transform: {
'\\.[jt]sx?$': 'babel-jest'
}
'\\.[jt]sx?$': 'babel-jest',
'^.+\\.svelte$': [
'svelte-jester',
{
preprocess: true
}
]
},
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
// "/node_modules/",
// "\\.pnp\\.[^\\/]+$"
// ],
transformIgnorePatterns: ['/node_modules/(?!svelte-material-icons).*/', '\\.pnp\\.[^\\/]+$']
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
// unmockedModulePathPatterns: undefined,