Skip to content

Commit 0419bdd

Browse files
fix: jest config to work with pinia v4
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
1 parent 0aa7714 commit 0419bdd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

jest.config.cjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
const esModules = [
66
'p-limit',
7+
'nostics',
78
].join('|')
89

910
module.exports = {
@@ -19,10 +20,10 @@ module.exports = {
1920
testEnvironment: 'jsdom',
2021
transform: {
2122
'^.+\\.ts$': 'ts-jest',
22-
'^.+\\.js$': 'babel-jest',
23+
'^.+\\.m?js$': 'babel-jest',
2324
'^.+\\.vue$': '@vue/vue3-jest',
2425
'^.+\\.(css|styl|less|sass|scss|jpg|jpeg|png|svg|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|avif)$': 'jest-transform-stub',
2526
},
26-
transformIgnorePatterns: [`/node_modules/(?!${esModules})/.+\\.js$`],
27+
transformIgnorePatterns: [`/node_modules/(?!${esModules})/.+\\.m?js$`],
2728
testPathIgnorePatterns: ['tests/javascript/e2e'],
2829
}

0 commit comments

Comments
 (0)