-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit testing with Jest + SCSS reorganization (#133)
- Loading branch information
Showing
14 changed files
with
30,045 additions
and
19,246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.