Skip to content

Commit 3c4a469

Browse files
committed
test: use AVA for testing instead of Jest
1 parent f654e91 commit 3c4a469

9 files changed

+3524
-6566
lines changed

.eslintrc.js

+1-26
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,6 @@ const defaultConfig = {
99
node: true,
1010
},
1111
rules: {
12-
'no-restricted-globals': [
13-
'error',
14-
/**
15-
* From Jest global environment.
16-
* https://github.com/facebook/jest/blob/v26.4.2/packages/jest-globals/src/index.ts#L12-L27
17-
*/
18-
'jest',
19-
'expect',
20-
'it',
21-
'test',
22-
'fit',
23-
'xit',
24-
'xtest',
25-
'describe',
26-
'xdescribe',
27-
'fdescribe',
28-
'beforeAll',
29-
'beforeEach',
30-
'afterEach',
31-
'afterAll',
32-
],
3312
'prettier/prettier': 'error',
3413
'sort-imports': 'error',
3514
},
@@ -65,13 +44,9 @@ const config = defaultConfig;
6544
config.overrides = [
6645
{
6746
files: ['**/*.ts', '**/*.tsx'],
68-
extends: addToDefaultExtends(
69-
'plugin:@typescript-eslint/recommended',
70-
'plugin:jest/style',
71-
),
47+
extends: addToDefaultExtends('plugin:@typescript-eslint/recommended'),
7248
parser: '@typescript-eslint/parser',
7349
plugins: defaultConfig.plugins.concat(['@typescript-eslint']),
74-
rules: { ...defaultConfig.rules, 'jest/consistent-test-it': 'error' },
7550
},
7651
{
7752
files: ['**/*.json'],

jest.config.js

-8
This file was deleted.

0 commit comments

Comments
 (0)