Skip to content

Commit

Permalink
fix: Jest CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
pnegri committed Jan 28, 2024
1 parent 6343797 commit ec8a064
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import '../src/css/tailwind.css';

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
Expand Down
19 changes: 19 additions & 0 deletions package-lock.json

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

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"autoprefixer": "^10.4.14",
"chromatic": "^6.17.4",
"cssnano": "^6.0.3",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"postcss": "^8.4.33",
Expand All @@ -74,5 +75,10 @@
"storybook": "^7.6.10",
"storybook-dark-mode": "^3.0.0",
"tailwindcss": "^3.3.2"
},
"jest": {
"moduleNameMapper":{
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
}
}
}
2 changes: 2 additions & 0 deletions src/js/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
import '../css/tailwind.css';

export { Button } from './components/button';
export { Panel } from './components/panel';

0 comments on commit ec8a064

Please sign in to comment.