Skip to content

Commit

Permalink
test: テスト設定追加
Browse files Browse the repository at this point in the history
  • Loading branch information
asa129 committed Feb 27, 2025
1 parent a99bde2 commit e013d96
Show file tree
Hide file tree
Showing 5 changed files with 7,452 additions and 2,399 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": [
"@babel/preset-env",
["@babel/preset-react", {
"runtime": "automatic"
}]
]
}
8 changes: 8 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
testEnvironment: "jsdom",
moduleNameMapper: {
"\\.(css|less)$": "identity-obj-proxy",
},
setupFilesAfterEnv: ["./jest.setup.js"],
};

4 changes: 4 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import "@testing-library/jest-dom";

// dotenvの設定
require("dotenv").config();
Loading

0 comments on commit e013d96

Please sign in to comment.