Skip to content

Commit

Permalink
feat: refactor tests to jest and testing library
Browse files Browse the repository at this point in the history
  • Loading branch information
mszekiel committed Sep 5, 2024
1 parent 5e2bbc4 commit 5deb7d1
Show file tree
Hide file tree
Showing 14 changed files with 1,418 additions and 210 deletions.
194 changes: 0 additions & 194 deletions jest.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
import { getJestProjects } from "@nx/jest"

export default {
projects: [...getJestProjects(), "<rootDir>/jest.config.ts"],
projects: getJestProjects(),
}
5 changes: 5 additions & 0 deletions jest.preset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const nxPreset = require("@nx/jest/preset").default

module.exports = {
...nxPreset,
}
6 changes: 6 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
"options": {
"targetName": "eslint:lint"
}
},
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "test"
}
}
]
}
Loading

0 comments on commit 5deb7d1

Please sign in to comment.