Skip to content

Commit

Permalink
✨ Support uint256[] decoding (#280)
Browse files Browse the repository at this point in the history
* Move from jest to vitest

* Support uint256[]

* Move the jokerrace test offline

* Rename a few unit and integration tests

* Revert to older deps

* Revert to stricter truth and false checks

* Simplify many tets

* Make local testing more bomb-proof
  • Loading branch information
dawsbot committed Apr 8, 2024
1 parent c9da3e4 commit 3e9bc1d
Show file tree
Hide file tree
Showing 40 changed files with 9,505 additions and 13,766 deletions.
17 changes: 5 additions & 12 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,29 @@ module.exports = {
es2021: true,
node: true,
},
plugins: ['@typescript-eslint', 'vitest'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/all',
'plugin:vitest/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'jest'],
rules: {
'jest/unbound-method': 'off',
'no-empty': 'warn',
'no-console': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'jest/expect-expect': 'off',
'jest/lowercase-name': 'off',
'jest/max-expects': 'off',
'jest/no-commented-out-tests': 'off',
'jest/no-conditional-expect': 'off',
'jest/no-disabled-tests': 'warn',
'jest/prefer-expect-assertions': 'off',
'jest/require-hook': 'off',
'jest/require-to-throw-message': 'off',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/consistent-type-imports': 'error',
'vitest/expect-expect': 'warn',
'vitest/no-commented-out-tests': 'warn',
},

overrides: [
{
files: 'src/**/*.ts',
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/codecov.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: ['20', '18', '16', '14']
node-version: ['21', '20', '18', '14']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
. "$(dirname "$0")/_/husky.sh"

npm run build:readme
npx lint-staged
npx lint-staged --concurrent false
git add readme.md
# npm run pre-commit
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ We have set up a GitHub project [here](https://github.com/dawsbot/essential-eth/
# Install and build
npm install

# Run jest test suite
# Run test suite
npm run test
```

Expand Down
9 changes: 0 additions & 9 deletions jest.config.cjs

This file was deleted.

Loading

0 comments on commit 3e9bc1d

Please sign in to comment.