Skip to content

Commit

Permalink
Migrate tests to ava + add eslint (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Feb 29, 2024
1 parent 7288854 commit 6ab2cfb
Show file tree
Hide file tree
Showing 16 changed files with 3,924 additions and 718 deletions.
38 changes: 38 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2018,
},
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
env: {
node: true,
},
rules: {
curly: 'warn',
'prettier/prettier': 'warn',
},
overrides: [
{
files: ['*.ts'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
files: ['buidler.config.js'],
globals: {
usePlugin: 'readonly',
},
},
{
files: ['ava.config.js'],
parserOptions: {
sourceType: 'module',
},
},
],
};
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
- uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
- run: npm run coverage -- --forbid-only
- run: npm run test:coverage -- --forbid-only
- run: npm run lint
- uses: codecov/codecov-action@v3
6 changes: 0 additions & 6 deletions .mocharc.json

This file was deleted.

5 changes: 5 additions & 0 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extensions: ['ts'],
require: ['ts-node/register'],
timeout: '600s',
};

0 comments on commit 6ab2cfb

Please sign in to comment.