Skip to content

Commit

Permalink
build: add test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Feb 27, 2024
1 parent 2d85e52 commit 9dad24a
Show file tree
Hide file tree
Showing 3 changed files with 1,884 additions and 21 deletions.
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const config = {
preset: "ts-jest",
testEnvironment: "jsdom",
};

module.exports = config;
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"release:prepare": "git fetch --tags && conventional-recommended-bump -p angular | xargs yarn version:auto $1",
"release:canary": "yarn release:prepare && node scripts/get-unstable-version canary | xargs yarn version:auto $1",
"release-commit": "git add -u && git commit -m \"release: v${npm_package_version}\"",
"test": "turbo run test",
"test": "jest",
"version:auto": "yarn version --no-git-tag-version --new-version $1",
"changelog": "node scripts/create-changelog"
},
Expand All @@ -30,7 +30,10 @@
"@types/react-dom": "^18.2.0",
"conventional-recommended-bump": "^6.0.5",
"eslint": "^7.32.0",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"object-hash": "^3.0.0",
"ts-jest": "^29.1.1",
"prettier": "^2.5.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
Loading

0 comments on commit 9dad24a

Please sign in to comment.