Skip to content

Commit

Permalink
update jest/tsjest version
Browse files Browse the repository at this point in the history
  • Loading branch information
daveajrussell committed Oct 24, 2024
1 parent 7657eae commit 5c1129d
Show file tree
Hide file tree
Showing 4 changed files with 970 additions and 918 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"html-loader": "^0.5.5",
"html-webpack-plugin": "^4.5.2",
"husky": "^0.14.3",
"jest": "^29.7.0",
"jest": "^26.6.3",
"jest-canvas-mock": "^1.1.0",
"js2xmlparser": "^3.0.0",
"json-loader": "^0.5.7",
Expand All @@ -155,7 +155,7 @@
"react-test-renderer": "^17.0.2",
"redux-mock-store": "^1.2.3",
"style-loader": "^0.23.1",
"ts-jest": "^29.2.5",
"ts-jest": "^26.5.6",
"ts-loader": "^8.0.2",
"typescript": "^4.6.3",
"typescript-plugin-styled-components": "^1.5.0",
Expand Down
10 changes: 5 additions & 5 deletions src/shared/modules/commands/cypher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { version } from 'project-root/package.json'
import { flushPromises } from 'services/utils'

jest.mock('services/bolt/bolt', () => {
const orig = require.requireActual('services/bolt/bolt')
const orig = jest.requireActual('services/bolt/bolt')
return {
...orig,
routedWriteTransaction: jest.fn(() => [
Expand All @@ -39,26 +39,26 @@ jest.mock('services/bolt/bolt', () => {
])
}
})
const bolt = require.requireMock('services/bolt/bolt')
const bolt = jest.requireMock('services/bolt/bolt')

jest.mock('shared/modules/params/paramsDuck', () => {
const orig = require.requireActual('shared/modules/params/paramsDuck')
const orig = jest.requireActual('shared/modules/params/paramsDuck')
return {
...orig,
getParams: () => ({})
}
})

jest.mock('shared/modules/dbMeta/dbMetaDuck', () => {
const orig = require.requireActual('shared/modules/dbMeta/dbMetaDuck')
const orig = jest.requireActual('shared/modules/dbMeta/dbMetaDuck')
return {
...orig,
getRawVersion: () => '3.5.0' // support for tx metadata
}
})

jest.mock('shared/modules/settings/settingsDuck', () => {
const orig = require.requireActual('shared/modules/dbMeta/dbMetaDuck')
const orig = jest.requireActual('shared/modules/dbMeta/dbMetaDuck')
return {
...orig,
shouldUseReadTransactions: () => false
Expand Down
2 changes: 1 addition & 1 deletion src/shared/modules/commands/use-db-ww.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jest.mock('shared/modules/params/paramsDuck', () => {
})

jest.mock('shared/modules/settings/settingsDuck', () => {
const orig = require.requireActual('shared/modules/dbMeta/dbMetaDuck')
const orig = jest.requireActual('shared/modules/dbMeta/dbMetaDuck')
return {
...orig,
shouldUseReadTransactions: () => false
Expand Down
Loading

0 comments on commit 5c1129d

Please sign in to comment.