Skip to content

Commit

Permalink
build(deps-dev): bump the vitest group from 1.6.0 to 2.0.1
Browse files Browse the repository at this point in the history
- closes #121

Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Jul 8, 2024
1 parent 40d01c4 commit 44173a3
Show file tree
Hide file tree
Showing 12 changed files with 294 additions and 310 deletions.
5 changes: 4 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,21 @@ updates:
- '@commitlint/*'
eslint:
patterns:
- '@eslint/js'
- '@types/eslint'
- '@types/eslint__js'
- eslint
flex-development:
patterns:
- '@flex-development/*'
typescript-eslint:
patterns:
- '@typescript-eslint/*'
- typescript-eslint
vitest:
patterns:
- '@vitest/*'
- vitest*
- vitest
labels:
- scope:dependencies
- type:build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ jobs:
- id: test
if: steps.test-files-check.outputs.files_exists == 'true'
name: Run tests
run: yarn test:cov --segfault-retry=3
run: yarn test:cov
- id: codecov
name: Upload coverage report to Codecov
if: steps.test-files-check.outputs.files_exists == 'true'
Expand Down
6 changes: 0 additions & 6 deletions __tests__/interfaces/index.ts

This file was deleted.

19 changes: 0 additions & 19 deletions __tests__/interfaces/mock-instance.ts

This file was deleted.

20 changes: 18 additions & 2 deletions eslint.base.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,14 @@ export default [
checkConstructors: true,
checkGetters: true,
checkSetters: true,
contexts: [
'ClassDeclaration',
'MethodDefinition',
'PropertyDefinition',
'TSInterfaceDeclaration',
'TSMethodSignature',
'VariableDeclaration'
],
descriptionStyle: 'body'
}
],
Expand Down Expand Up @@ -491,14 +499,21 @@ export default [
checkGetters: true,
checkSetters: true,
contexts: [
'PropertyDefinition',
'TSDeclareFunction:not(TSDeclareFunction + TSDeclareFunction)',
'TSMethodSignature',
'FunctionDeclaration:not(TSDeclareFunction + FunctionDeclaration)'
],
enableFixer: true,
exemptEmptyConstructors: true,
exemptEmptyConstructors: false,
exemptEmptyFunctions: false,
require: {
FunctionDeclaration: false
ArrowFunctionExpression: false,
ClassDeclaration: true,
ClassExpression: true,
FunctionDeclaration: true,
FunctionExpression: true,
MethodDefinition: true
}
}
],
Expand Down Expand Up @@ -1032,6 +1047,7 @@ export default [
'jest-formatting/padding-around-describe-blocks': 1,
'jest-formatting/padding-around-expect-groups': 1,
'jest-formatting/padding-around-test-blocks': 1,
'jsdoc/require-jsdoc': 0,
'no-control-regex': 0,
'no-empty-pattern': 0,
'promise/prefer-await-to-callbacks': 0,
Expand Down
3 changes: 1 addition & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export default [
'!**/typings/**/dist/',
'**/.yarn/',
'**/coverage/',
'**/dist/',
'__fixtures__/underscore-1.5.2.js'
'**/dist/'
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
"@typescript-eslint/eslint-plugin": "8.0.0-alpha.41",
"@typescript-eslint/parser": "8.0.0-alpha.41",
"@vates/toggle-scripts": "1.0.0",
"@vitest/coverage-v8": "1.6.0",
"@vitest/coverage-v8": "2.0.1",
"@vitest/ui": "2.0.1",
"chai": "5.1.1",
"cross-env": "7.0.3",
"cspell": "8.10.4",
Expand Down Expand Up @@ -140,7 +141,7 @@
"typescript": "5.5.2",
"typescript-eslint": "8.0.0-alpha.41",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0",
"vitest": "2.0.1",
"yaml-eslint-parser": "1.2.3"
},
"resolutions": {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/abstract.reader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
*/

import type { ReaderValue, ReaderValues } from '#src/types'
import type { MockInstance } from '#tests/interfaces'
import type { Offset } from '@flex-development/unist-util-types'
import type { Point } from '@flex-development/vfile-location'
import { read } from 'to-vfile'
import type { VFile, Value } from 'vfile'
import type { MockInstance } from 'vitest'
import TestSubject from '../abstract.reader'

describe('unit:Reader', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/character.reader.functional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/

import type { Character, RangeTuple } from '#src/types'
import type { MockInstance } from '#tests/interfaces'
import { read } from 'to-vfile'
import type { VFile } from 'vfile'
import type { MockInstance } from 'vitest'
import Reader from '../abstract.reader'
import TestSubject from '../character.reader'

Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/code.reader.functional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/

import type { Code, RangeTuple } from '#src/types'
import type { MockInstance } from '#tests/interfaces'
import { read } from 'to-vfile'
import type { VFile } from 'vfile'
import type { MockInstance } from 'vitest'
import Reader from '../abstract.reader'
import TestSubject from '../code.reader'

Expand Down
9 changes: 8 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ const config: UserConfigExport = defineConfig((env: ConfigEnv): UserConfig => {
},
restoreMocks: true,
sequence: {
/**
* Sorting and sharding algorithm provider.
*
* @see {@linkcode BaseSequencer}
*
* @extends {BaseSequencer}
*/
sequencer: class Sequencer extends BaseSequencer {
/**
* Determines test file execution order.
Expand All @@ -121,7 +128,7 @@ const config: UserConfigExport = defineConfig((env: ConfigEnv): UserConfig => {
* @async
*
* @param {WorkspaceSpec[]} specs - Workspace spec objects
* @return {Promise<WorkspaceSpec[]>} `files` sorted
* @return {Promise<WorkspaceSpec[]>} Sorted `specs`
*/
public override async sort(
specs: WorkspaceSpec[]
Expand Down
Loading

0 comments on commit 44173a3

Please sign in to comment.