Skip to content

Commit

Permalink
Merge pull request #6407 from owncloud/reduceLogOutput/web-runtime/te…
Browse files Browse the repository at this point in the history
…sts/unit/container/bootstrap.spec.ts

[tests-only] use jest.mocked instead of mocked from ts-jest/utils
  • Loading branch information
pascalwengerter authored Feb 10, 2022
2 parents 707f074 + 384020e commit f0a7a5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/web-runtime/tests/unit/container/bootstrap.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { announceApplications } from '../../../src/container'
import { buildApplication } from '../../../src/container/application'
import { mocked } from 'ts-jest/utils'

jest.mock('../../../src/container/application')

Expand All @@ -20,7 +19,7 @@ describe('announce applications', () => {
return Promise.reject(fishyError)
})

mocked(buildApplication).mockImplementation(buildApplicationMock)
jest.mocked(buildApplication).mockImplementation(buildApplicationMock)

await announceApplications({
runtimeConfiguration: {
Expand Down

0 comments on commit f0a7a5e

Please sign in to comment.