Skip to content

Commit

Permalink
Utils vitest + run eslint and tests in CI build (#23)
Browse files Browse the repository at this point in the history
* Setup eslint + test in ci pipeline + tests for text-utils

* Type tests

* Unit tests for array-utils

* Unit tests for object-utils

* Rush update

* Rush change
  • Loading branch information
ilbrando authored Nov 9, 2024
1 parent 90f9771 commit f2f5c45
Show file tree
Hide file tree
Showing 24 changed files with 722 additions and 46 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ jobs:
run: node common/scripts/install-run-rush.js install
- name: Rush rebuild
run: node common/scripts/install-run-rush.js rebuild --verbose
- name: Rush test
run: node common/scripts/install-run-rush.js test
- name: Rush eslint
run: node common/scripts/install-run-rush.js eslint
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "streetsidesoftware.code-spell-checker"]
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "streetsidesoftware.code-spell-checker", "vitest.explorer"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/eslint-plugin",
"comment": "Remove eslint script",
"type": "none"
}
],
"packageName": "@ilbrando/eslint-plugin"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/simple-form-joy",
"comment": "Eslint script",
"type": "patch"
}
],
"packageName": "@ilbrando/simple-form-joy"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/simple-form-material-ui",
"comment": "Esline script",
"type": "patch"
}
],
"packageName": "@ilbrando/simple-form-material-ui"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/simple-form",
"comment": "Eslint script",
"type": "patch"
}
],
"packageName": "@ilbrando/simple-form"
}
10 changes: 10 additions & 0 deletions common/changes/@ilbrando/utils/utils-vitest_2024-11-09-17-07.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/utils",
"comment": "Eslint script and unit tests",
"type": "patch"
}
],
"packageName": "@ilbrando/utils"
}
10 changes: 9 additions & 1 deletion common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,19 @@
// */
// // "autoinstallerName": "my-task"
// }
{
"commandKind": "bulk",
"name": "test",
"summary": "Run unit tests.",
"enableParallelism": true,
"ignoreMissingScript": true
},
{
"commandKind": "bulk",
"name": "eslint",
"summary": "Lints all projects",
"enableParallelism": false
"enableParallelism": false,
"ignoreMissingScript": true
}
],

Expand Down
Loading

0 comments on commit f2f5c45

Please sign in to comment.