Skip to content

Commit

Permalink
chore(deps): update jest to v27
Browse files Browse the repository at this point in the history
Updates jest and ts-jest to v27, as jest v27.1.0 includes a necessary fix to unblock further work on spying issues.

See jestjs/jest#11721
  • Loading branch information
cexbrayat committed Aug 30, 2021
1 parent 72d2b26 commit 5e121ad
Show file tree
Hide file tree
Showing 5 changed files with 574 additions and 1,187 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
testEnvironment: 'jsdom',
preset: 'ts-jest',
setupFilesAfterEnv: ['./scripts/setupJestEnv.ts'],
globals: {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.4",
"@types/hash-sum": "^1.0.0",
"@types/jest": "^26.0.16",
"@types/jest": "^27.0.1",
"@types/node": "^16.4.7",
"@types/puppeteer": "^5.0.0",
"@typescript-eslint/parser": "^4.1.1",
Expand All @@ -64,7 +64,7 @@
"eslint": "^7.7.0",
"execa": "^4.0.2",
"fs-extra": "^9.0.1",
"jest": "^26.0.1",
"jest": "^27.1.0",
"lint-staged": "^10.2.10",
"minimist": "^1.2.0",
"npm-run-all": "^4.1.5",
Expand All @@ -78,7 +78,7 @@
"rollup-plugin-typescript2": "^0.27.2",
"semver": "^7.3.2",
"serve": "^12.0.0",
"ts-jest": "^26.2.0",
"ts-jest": "^27.0.5",
"typescript": "^4.2.2",
"yorkie": "^2.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-compat/__tests__/instance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('INSTANCE_EVENT_EMITTER', () => {
})

it('$off event + fn', () => {
const spy2 = jasmine.createSpy('emitter')
const spy2 = jest.fn()
vm.$on('test', spy)
vm.$on('test', spy2)
vm.$off('test', spy)
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/examples/__tests__/grid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('e2e: grid', () => {
for (let j = 0; j < columns.length; j++) {
expect(
await text(`tr:nth-child(${i + 1}) td:nth-child(${j + 1})`)
).toContain(data[i][columns[j]])
).toContain(`${data[i][columns[j]]}`)
}
}
}
Expand Down
Loading

0 comments on commit 5e121ad

Please sign in to comment.