Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Jest with Vitest 2 #4728

Merged
merged 32 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5fba9fe
Vitest
birkskyum Sep 9, 2024
50a20cf
jest -> vi
birkskyum Nov 21, 2024
05ea269
import vitest describe, expect, test
birkskyum Nov 21, 2024
be761a8
lint
birkskyum Nov 21, 2024
82096af
use 2.2.0-beta.2, due to fix for coverageMap
birkskyum Nov 22, 2024
45b2f59
pass vitest cov file to ci
birkskyum Nov 22, 2024
45cd631
pass integration test file too
birkskyum Nov 22, 2024
5ef4940
fix integration test
birkskyum Nov 22, 2024
11df577
exclude .test.ts
birkskyum Nov 22, 2024
c05f568
exclude test.ts
birkskyum Nov 22, 2024
9f147b3
remove no-op text reporter
birkskyum Nov 22, 2024
cdde7c8
add ui
birkskyum Nov 22, 2024
330622a
vitest run
birkskyum Nov 22, 2024
7bc1f22
use mockinstance
birkskyum Nov 22, 2024
0dab41b
use MockInstance
birkskyum Nov 22, 2024
1702365
cleanup
birkskyum Nov 22, 2024
51b5a61
revert web_worker
birkskyum Nov 22, 2024
96d7c67
import vitest first line
birkskyum Nov 22, 2024
674ee44
only register SymbolBuffers if it isn't already
birkskyum Nov 22, 2024
440652a
cleanup vitest import
birkskyum Nov 22, 2024
ee7eef9
brush up readme
birkskyum Nov 22, 2024
281f8d3
remove vscode extension section
birkskyum Nov 22, 2024
a673070
return if registerede
birkskyum Nov 22, 2024
f9056d7
warn about re-registration and return
birkskyum Nov 22, 2024
176240f
warn about re-registration
birkskyum Nov 22, 2024
173f0c7
don't export registry
birkskyum Nov 22, 2024
aec2f7e
don't import registry
birkskyum Nov 22, 2024
c5cbcd8
mock symbol bucket
birkskyum Nov 22, 2024
fec4f69
one line error
birkskyum Nov 22, 2024
391813d
SymbolBucket mock
birkskyum Nov 22, 2024
e86a411
mock symbol bucket other places
birkskyum Nov 22, 2024
e4b0e48
lint
birkskyum Nov 22, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
files: ${{ github.workspace }}/coverage/jest/codecov.json
files: ${{ github.workspace }}/coverage/vitest/unit/coverage-final.json
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
disable_search: true
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
if: '!cancelled()'
uses: codecov/codecov-action@v5
with:
files: ${{ github.workspace }}/coverage/jest/codecov.json
files: ${{ github.workspace }}/coverage/vitest/integration/coverage-final.json
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
disable_search: true
Expand Down
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"jest.jestCommandLine": "jest",
}
}
}
23 changes: 3 additions & 20 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import stylisticTs from '@stylistic/eslint-plugin-ts'
import tsdoc from 'eslint-plugin-tsdoc';
import jest from 'eslint-plugin-jest';
import vitest from 'eslint-plugin-vitest';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import react from 'eslint-plugin-react';
Expand All @@ -18,7 +18,7 @@ export default [
'@typescript-eslint': typescriptEslint,
'@stylistic': stylisticTs,
tsdoc,
jest,
vitest,
},

linterOptions: {
Expand Down Expand Up @@ -101,23 +101,7 @@ export default [
max: 1,
}],

'tsdoc/syntax': 'warn',
'jest/no-commented-out-tests': 'error',
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
'jest/prefer-to-be': 'warn',
'jest/no-alias-methods': 'warn',
'jest/no-interpolation-in-snapshots': 'warn',

'jest/no-large-snapshots': ['warn', {
maxSize: 50,
inlineMaxSize: 20,
}],

'jest/no-deprecated-functions': 'warn',
'tsdoc/syntax': 'warn'
},
},
{
Expand Down Expand Up @@ -155,5 +139,4 @@ export default [
},
},
},

];
67 changes: 0 additions & 67 deletions jest.config.ts

This file was deleted.

Loading
Loading