Skip to content

Commit

Permalink
feat: support Jest 25
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Sep 17, 2019
1 parent c5ca02c commit ffc2cfe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -68,7 +68,7 @@
"yargs-parser": "10.x"
},
"peerDependencies": {
"jest": ">=24 <25"
"jest": ">=24 <26"
},
"husky": {
"hooks": {
Expand Down
8 changes: 4 additions & 4 deletions src/cli/cli.spec.ts
Expand Up @@ -61,7 +61,7 @@ afterEach(() => {
mockedProcess = undefined
})

describe('cli', async () => {
describe('cli', () => {
it('should output usage', async () => {
expect.assertions(2)
await expect(runCli()).resolves.toMatchInlineSnapshot(`
Expand Down Expand Up @@ -105,9 +105,9 @@ Example:
})
})

describe('config', async () => {
describe('config', () => {
// briefly tested, see header comment in `config/init.ts`
describe('init', async () => {
describe('init', () => {
const noOption = ['config:init']
const fullOptions = [
...noOption,
Expand Down Expand Up @@ -256,7 +256,7 @@ Options:
})
}) // init

describe('migrate', async () => {
describe('migrate', () => {
const pkgPaths = {
_id: 0,
_cfgId: 0,
Expand Down
4 changes: 2 additions & 2 deletions src/util/version-checkers.spec.ts
Expand Up @@ -15,8 +15,8 @@ jest.mock('./get-package-version')

const pv = mocked(_pv)

describeChecker(VersionCheckers.jest, 'jest', ['24.1.0'], [undefined, '23.6.0', '25.0.0'])
describeChecker(VersionCheckers.babelJest, 'babel-jest', ['24.1.0'], [undefined, '23.6.0', '25.0.0'])
describeChecker(VersionCheckers.jest, 'jest', ['24.1.0'], [undefined, '23.6.0', '26.0.0'])
describeChecker(VersionCheckers.babelJest, 'babel-jest', ['24.1.0'], [undefined, '23.6.0', '26.0.0'])
describeChecker(VersionCheckers.babelCore, '@babel/core', ['7.1.3', '7.0.0-beta.56'], [undefined, '6.0.0', '8.0.0'])
describeChecker(VersionCheckers.typescript, 'typescript', ['2.7.0', '3.0.1'], [undefined, '2.6.99', '4.0.1'])

Expand Down
4 changes: 2 additions & 2 deletions src/util/version-checkers.ts
Expand Up @@ -10,9 +10,9 @@ const logger = rootLogger.child({ namespace: 'versions' })
* @internal
*/
export enum ExpectedVersions {
Jest = '>=24 <25',
Jest = '>=24 <26',
TypeScript = '>=2.7 <4',
BabelJest = '>=24 <25',
BabelJest = '>=24 <26',
BabelCore = '>=7.0.0-beta.0 <8',
}

Expand Down

0 comments on commit ffc2cfe

Please sign in to comment.