Skip to content

Commit

Permalink
chore(jest): fix transformation of css files
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
  • Loading branch information
st3iny committed Jul 11, 2023
1 parent 3f09733 commit 2221041
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
15 changes: 14 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"chai": "^4.3.7",
"eslint-plugin-chai-friendly": "^0.7.2",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.1"
"jest-environment-jsdom": "^29.6.1",
"jest-transform-stub": "^2.0.0"
},
"prettier": {
"singleQuote": true,
Expand All @@ -68,10 +69,14 @@
"setupFilesAfterEnv": [
"./src/tests/jest.setup.js"
],
"testEnvironment": "jsdom",
"testEnvironment": "jest-environment-jsdom",
"transform": {
".*\\.(js)$": "babel-jest",
".*\\.(vue)$": "@vue/vue2-jest"
}
".*\\.(vue)$": "@vue/vue2-jest",
".*\\.(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"
},
"transformIgnorePatterns": [
"/node_modules/.*/.+\\.js$"
]
}
}

0 comments on commit 2221041

Please sign in to comment.