Skip to content

Commit

Permalink
Add unit testing with Jest + SCSS reorganization (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotAPI authored Dec 17, 2023
1 parent 4553b67 commit 26af8e1
Show file tree
Hide file tree
Showing 14 changed files with 30,045 additions and 19,246 deletions.
40 changes: 17 additions & 23 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-typescript",
{
"targets": {
"chrome": 100,
"safari": 15,
"firefox": 91
},

}
"sourceType": "unambiguous",
"presets": [
"@babel/preset-typescript",
"@babel/preset-react",
"@babel/preset-env"
],
"@babel/preset-react"
],
"plugins": [
["module-resolver", {
"root": ["./src"],
"alias": {
"@": "./src"
}
}]
]
}
"plugins": [
[
"module-resolver",
{
"root": ["./src"],
"alias": {
"@": "./src"
}
}
]
]
}
11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('jest').Config} */
const config = {
verbose: false, // enable to see the full test suite output, console.log, etc.
testEnvironment: 'jsdom', // enable to use DOM APIs
setupFilesAfterEnv: ['./src/setupTests.js'], // enable to use custom setup files
moduleNameMapper: {
'\\.(css|less|scss)$': 'identity-obj-proxy', // enable to mock CSS imports
},
};

module.exports = config;
Loading

0 comments on commit 26af8e1

Please sign in to comment.