Skip to content

Commit

Permalink
chore: improve test suite by adding toHaveClass matcher (#138)
Browse files Browse the repository at this point in the history
Update tests to use transform
  • Loading branch information
mskelton authored Jan 3, 2024
1 parent d60302f commit 0ff1820
Show file tree
Hide file tree
Showing 8 changed files with 621 additions and 255 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const config = {
transform: {
"^.+\\.(t|j)sx?$": "@swc-node/jest",
},
setupFilesAfterEnv: ["<rootDir>/setupTests.ts"],
};

export default config;
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"devDependencies": {
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@jest/globals": "^29.7.0",
"@swc-node/jest": "^1.5.2",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.198",
Expand All @@ -49,6 +50,7 @@
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"benchmark": "2.1.4",
"clean-package": "2.1.1",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.2.0",
Expand All @@ -60,6 +62,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"expect": "^29.7.0",
"jest": "28.1.1",
"prettier": "^2.2.1",
"prettier-eslint": "^12.0.0",
Expand All @@ -69,8 +72,7 @@
"tslib": "^2.4.1",
"tsup": "6.6.3",
"typescript": "5.1.3",
"webpack": "^5.53.0",
"benchmark": "2.1.4"
"webpack": "^5.53.0"
},
"peerDependencies": {
"tailwindcss": "*"
Expand Down
Loading

0 comments on commit 0ff1820

Please sign in to comment.