Skip to content

Commit

Permalink
chore: update @types/jest
Browse files Browse the repository at this point in the history
remove @types/jest from @repobuddy/jest due to:
jestjs/jest#14097

Add `with-t` test case.

There was a failure in `async-fp`,
but it is working after upgrading to jest 29.5.0

Adding the test case here for reference.
  • Loading branch information
unional committed Apr 22, 2023
1 parent ea8faad commit efc4103
Show file tree
Hide file tree
Showing 20 changed files with 446 additions and 736 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"cSpell.words": [
"formatjs",
"kayahr",
"miku",
"repobuddy",
"styl",
"tsbuildinfo"
]
}
3 changes: 1 addition & 2 deletions packages/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,8 @@
"type-plus": "^6.0.0"
},
"devDependencies": {
"@jest/expect": "^29.3.1",
"@jest/expect": "^29.5.0",
"@jest/globals": "^29.5.0",
"@types/jest": "^29.2.5",
"@types/node": "^18.11.18",
"assertron": "^11.0.3",
"chalk": "^5.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/jest/ts/configs/config.Source.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, it } from '@jest/globals'
import { describe, expect, it, jest } from '@jest/globals'
import { ctx } from './configSource.ctx.js'
import { configSource } from './index.js'

Expand All @@ -24,7 +24,7 @@ describe(`${configSource.name}()`, () => {
})

it('defaults to src', () => {
ctx.existsSync = jest.fn().mockReturnValue(false)
ctx.existsSync = jest.fn(ctx.existsSync).mockReturnValue(false)
expect(configSource()).toEqual({
collectCoverageFrom: [
'<rootDir>/src/**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}',
Expand Down
1 change: 1 addition & 0 deletions packages/jest/ts/fields/moduleNameMapper.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals'
import { defineModuleNameMappers, knownModuleNameMappers } from './moduleNameMapper.js'

describe(`${defineModuleNameMappers.name}()`, () => {
Expand Down
1 change: 1 addition & 0 deletions packages/jest/ts/fields/transform.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from '@jest/globals'
import { defineTransform } from './transform.js'

describe(`${defineTransform.name}()`, () => {
Expand Down
1 change: 1 addition & 0 deletions packages/jest/ts/fields/transform.ts_jest_cjs.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { expect, it } from '@jest/globals'
import { knownTransforms } from './transform.js'

it('provides default transform options for CJS', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/jest/ts/fields/transform.ts_jest_esm.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { expect, it } from '@jest/globals'
import { knownTransforms } from './transform.js'

it('provides default transform options for ESM', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/jest/ts/fields/watchPlugins.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals'
import { defineWatchPlugins, knownWatchPlugins } from './watchPlugins.js'

describe(`${defineWatchPlugins.name}()`, () => {
Expand Down
1 change: 1 addition & 0 deletions packages/jest/ts/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { expect, it } from '@jest/globals'
import { jsCjsPreset, jsEsmPreset, tsCjsPreset, tsEsmPreset } from './index.js'

it('exports presets', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/jest/ts/tests/chalk.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { it } from '@jest/globals'
import chalk from 'chalk'

it(`works with ${chalk.green('chalk')}`, () => {})
Loading

0 comments on commit efc4103

Please sign in to comment.