Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7096552
imp: Implemented tests for `dateDifference` function.
Byloth Sep 17, 2024
dff090a
merge: Merge branch 'master' into feature/tests
Byloth Sep 23, 2024
84ae98d
merge: Merge branch 'feature/jsdoc' into feature/tests
Byloth Jan 8, 2025
52e6185
wip: Added some new tests...
Byloth Jan 8, 2025
9674ae3
add: Completed tests for `utils/date` file.
Byloth Jan 8, 2025
c15edeb
add: Added tests for `utils/curve`. + Trying tests generated by Copil…
Byloth Jan 8, 2025
e01a663
wip: Added tests for files `utils/iterator`. + Minor improvements.
Byloth Jan 8, 2025
e93595f
add: Implemented tests for `utils`.
Byloth Jan 8, 2025
b21abe5
mrege: Merge branch 'master' into feature/tests
Byloth Jan 25, 2025
c0db4e6
add: Reintroduced some missing spaces.
Byloth Jan 25, 2025
eba03c3
wip: Testing...
Byloth Jan 27, 2025
fdca9d1
test: Implemented tests for `models/timers`. Closes #10.
Byloth Jan 27, 2025
451f4c4
add: Added some other tests...
Byloth Jan 29, 2025
1d3c524
wip: Implemented some tests for `models/iterators`...
Byloth Jan 30, 2025
eed5ab5
imp: Implemented tests for `models/iterators`.
Byloth Jan 30, 2025
b9287f2
fix: Changed directory.
Byloth Jan 30, 2025
a1b77c1
imp: Implemented some other tests.
Byloth Jan 28, 2025
83ca229
fix: Minor fixes.
Byloth Jan 30, 2025
1b4b13e
fix: Various fixes.
Byloth Jan 30, 2025
6ac645a
wip: First draft of tests for `models/aggregators`...
Byloth Jan 30, 2025
14b41c3
upd: Minor update.
Byloth Jan 31, 2025
9f1323d
wip: **Almost** ended writing all the tests... 🥹
Byloth Jan 31, 2025
2431157
tests: Ended up all the tests! **FINALLY!** 🥹
Byloth Jan 31, 2025
9d8b916
fix: Polishing tests. 🧽✨
Byloth Jan 31, 2025
c71c34a
upd: Updated CI. + Updated dependencies.
Byloth Jan 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[{config.js,*.config.js}]
indent_size = 2

[.eslintrc.{cjs,js}]
[*.config.{js,mjs,ts,mts}]
indent_size = 2

[*.{json,yml}]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/template-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
with:
version: latest

- name: Configuring Node.js 20 (LTS)
- name: Configuring Node.js 22 (LTS)
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20
node-version: 22

- name: Installing dependencies
run: pnpm run ci
Expand All @@ -29,6 +29,8 @@ jobs:

- name: Checking type consistency
run: pnpm run typecheck
- name: Testing the source code
run: pnpm run test
- name: Building the source code
run: pnpm build
- name: Creating the artifact
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/template-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
with:
name: byloth-core

- name: Configuring Node.js 20 (LTS)
- name: Configuring Node.js 22 (LTS)
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: ${{ inputs.registry-url }}

- if: ${{ github.event.release.prerelease == true }}
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NODE_ENV="production" pnpm run lint
pnpm run typecheck
pnpm run test
10 changes: 5 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const __dirname = path.dirname(__filename);
const gitignorePath = path.resolve(__dirname, ".gitignore");

export default [includeIgnoreFile(gitignorePath), ...eslintTs, {
rules: {
"no-trailing-spaces": ["error", { "ignoreComments": true }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/unified-signatures": "off"
}
rules: {
"no-trailing-spaces": ["error", { "ignoreComments": true }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/unified-signatures": "off"
}
}];
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,19 @@
"preview": "vite preview",
"typecheck": "tsc",
"lint": "eslint .",
"test": "vitest",
"test": "vitest run",
"prepare": "husky",
"ci": "pnpm install --frozen-lockfile"
},
"devDependencies": {
"@byloth/eslint-config-typescript": "^3.0.3",
"@types/node": "^22.10.7",
"@byloth/eslint-config-typescript": "^3.1.0",
"@eslint/compat": "^1.2.6",
"@types/node": "^22.13.0",
"husky": "^9.1.7",
"jsdom": "^26.0.0",
"typescript": "^5.7.3",
"vite": "^6.0.10"
"vite": "^6.0.11",
"vitest": "^3.0.4"
},
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
"packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
}
Loading