Skip to content

Commit

Permalink
fix tests by using vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
spearwolf committed Oct 11, 2023
1 parent d713092 commit 367467f
Show file tree
Hide file tree
Showing 11 changed files with 182 additions and 124 deletions.
22 changes: 19 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,28 @@
"dependsOn": ["^build"]
},
"lint": {
"dependsOn": ["^build"],
"inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"]
"inputs": [
"default",
"{workspaceRoot}/.eslintignore",
"{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/.prettierrc",
"{workspaceRoot}/.prettierignore"
]
},
"test": {
"executor": "nx:run-script",
"options": {
"script": "test"
},
"dependsOn": ["^build"],
"inputs": ["default", "^default", "{workspaceRoot}/jest.preset.js"]
"inputs": ["default", "^default", "{workspaceRoot}/tsconfig.base.json"]
},
"publishNpmPkg": {
"executor": "nx:run-script",
"dependsOn": ["build"],
"options": {
"script": "publishNpmPkg"
}
}
}
}
194 changes: 134 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@types/three": "^0.153.0",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@vitejs/plugin-react": "^4.1.0",
"canvas": "^2.11.2",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
Expand All @@ -51,6 +52,7 @@
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"happy-dom": "^12.9.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"npm-run-all": "^4.1.5",
Expand Down
Loading

0 comments on commit 367467f

Please sign in to comment.