Skip to content

Commit 8030b9f

Browse files
committed
some more tests and other improvements
1 parent eaa0134 commit 8030b9f

File tree

18 files changed

+8063
-2013
lines changed

18 files changed

+8063
-2013
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ Currently, two official plugins are available:
66

77
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
88
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9+
10+
11+
Features demoed in this project"
12+
- Infinite scoll to show more products
13+
- Dynamic product layout (List or Table)
14+
- Container query

babel.config.cjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
presets: [
3+
'@babel/preset-env', [
4+
'@babel/preset-react',
5+
{
6+
runtime: "automatic"
7+
}
8+
]
9+
]
10+
};

jest.config.cjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
transform: {
3+
'^.+\\.[t|j]sx?$': 'babel-jest',
4+
},
5+
moduleNameMapper: {
6+
'^.+\\.(jpg|jpeg|png|gif|webp|svg|css)$': 'jest-transform-stub'
7+
},
8+
testEnvironment: 'jsdom',
9+
testPathIgnorePatterns: ["<rootDir>/node_modules/"]
10+
};
11+

0 commit comments

Comments
 (0)