Open svb-hikip opened 2 months ago
"devDependencies" : {
"@babel/preset-env": "^7.16.4",
"@babel/preset-react": "^7.16.0",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"babel-jest": "^27.4.5",
"jest": "^27.4.5",
"react-test-renderer": "^17.0.2"
}
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
module.exports = {
setupFilesAfterEnv: ["<rootDir>/setupTests.js"],
testEnvironment: "jsdom",
moduleNameMapper: {
"\\.(css|less|sass|scss)$": "identity-obj-proxy"
}
};
@anthonym995 Please go ahead
https://jestjs.io/
Use this library for testing