chore(deps): update jest to v27 (#4472)
Updates jest and ts-jest to v27, as jest v27.1.0 includes a necessary fix to unblock further work on spying issues. See https://github.com/facebook/jest/pull/11721
This commit is contained in:
parent
b9b28e229a
commit
b49f446ad0
@ -1,4 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
testEnvironment: 'jsdom',
|
||||||
preset: 'ts-jest',
|
preset: 'ts-jest',
|
||||||
setupFilesAfterEnv: ['./scripts/setupJestEnv.ts'],
|
setupFilesAfterEnv: ['./scripts/setupJestEnv.ts'],
|
||||||
globals: {
|
globals: {
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
"@rollup/plugin-node-resolve": "^11.2.1",
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
||||||
"@rollup/plugin-replace": "^2.3.4",
|
"@rollup/plugin-replace": "^2.3.4",
|
||||||
"@types/hash-sum": "^1.0.0",
|
"@types/hash-sum": "^1.0.0",
|
||||||
"@types/jest": "^26.0.16",
|
"@types/jest": "^27.0.1",
|
||||||
"@types/node": "^16.4.7",
|
"@types/node": "^16.4.7",
|
||||||
"@types/puppeteer": "^5.0.0",
|
"@types/puppeteer": "^5.0.0",
|
||||||
"@typescript-eslint/parser": "^4.1.1",
|
"@typescript-eslint/parser": "^4.1.1",
|
||||||
@ -64,7 +64,7 @@
|
|||||||
"eslint": "^7.7.0",
|
"eslint": "^7.7.0",
|
||||||
"execa": "^4.0.2",
|
"execa": "^4.0.2",
|
||||||
"fs-extra": "^9.0.1",
|
"fs-extra": "^9.0.1",
|
||||||
"jest": "^26.0.1",
|
"jest": "^27.1.0",
|
||||||
"lint-staged": "^10.2.10",
|
"lint-staged": "^10.2.10",
|
||||||
"minimist": "^1.2.0",
|
"minimist": "^1.2.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
@ -78,7 +78,7 @@
|
|||||||
"rollup-plugin-typescript2": "^0.27.2",
|
"rollup-plugin-typescript2": "^0.27.2",
|
||||||
"semver": "^7.3.2",
|
"semver": "^7.3.2",
|
||||||
"serve": "^12.0.0",
|
"serve": "^12.0.0",
|
||||||
"ts-jest": "^26.2.0",
|
"ts-jest": "^27.0.5",
|
||||||
"typescript": "^4.2.2",
|
"typescript": "^4.2.2",
|
||||||
"yorkie": "^2.0.0"
|
"yorkie": "^2.0.0"
|
||||||
}
|
}
|
||||||
|
@ -157,7 +157,7 @@ describe('INSTANCE_EVENT_EMITTER', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('$off event + fn', () => {
|
it('$off event + fn', () => {
|
||||||
const spy2 = jasmine.createSpy('emitter')
|
const spy2 = jest.fn()
|
||||||
vm.$on('test', spy)
|
vm.$on('test', spy)
|
||||||
vm.$on('test', spy2)
|
vm.$on('test', spy2)
|
||||||
vm.$off('test', spy)
|
vm.$off('test', spy)
|
||||||
|
@ -16,7 +16,7 @@ describe('e2e: grid', () => {
|
|||||||
for (let j = 0; j < columns.length; j++) {
|
for (let j = 0; j < columns.length; j++) {
|
||||||
expect(
|
expect(
|
||||||
await text(`tr:nth-child(${i + 1}) td:nth-child(${j + 1})`)
|
await text(`tr:nth-child(${i + 1}) td:nth-child(${j + 1})`)
|
||||||
).toContain(data[i][columns[j]])
|
).toContain(`${data[i][columns[j]]}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user