Skip to content

Commit

Permalink
half-attempt to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed May 29, 2024
1 parent c74cb0a commit 97b6932
Show file tree
Hide file tree
Showing 5 changed files with 12,678 additions and 9,240 deletions.
10 changes: 10 additions & 0 deletions frontend/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-proposal-private-property-in-object"
]
}
17 changes: 17 additions & 0 deletions frontend/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "jsdom",
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
"^.+\\.(js|jsx)$": "babel-jest",
},
transformIgnorePatterns: ["/node_modules/(?!(react-markdown)/)"],
moduleNameMapper: {
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
},
globals: {
"ts-jest": {
tsconfig: "tsconfig.json",
},
},
};
Loading

0 comments on commit 97b6932

Please sign in to comment.