Skip to content

fix(spy)!: spyOn reuses mock if method is already spyed on #11286

fix(spy)!: spyOn reuses mock if method is already spyed on

fix(spy)!: spyOn reuses mock if method is already spyed on #11286

Triggered via pull request September 9, 2024 07:39
Status Failure
Total duration 11m 25s
Artifacts

ci.yml

on: pull_request
Diff: node-latest, ubuntu-latest
6s
Diff: node-latest, ubuntu-latest
Lint: node-latest, ubuntu-latest
2m 24s
Lint: node-latest, ubuntu-latest
Matrix: test-browser
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

50 errors
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21
test/mocked.test.ts > mocked classes > should mock the constructor: test/core/test/mocked.test.ts#L67
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:67:22
test/mocked.test.ts > mocked classes > should mock functions in the prototype: test/core/test/mocked.test.ts#L74
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:74:22
test/mocked.test.ts > mocked classes > should mock getters: test/core/test/mocked.test.ts#L84
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:84:22
test/mocked.test.ts > mocked classes > should mock getters and setters: test/core/test/mocked.test.ts#L101
TypeError: Cannot set properties of undefined (setting 'mockRestore') ❯ test/mocked.test.ts:101:22
test/mocked.test.ts > async functions should be mocked: test/core/test/mocked.test.ts#L136
TypeError: You must provide a Promise to expect() when using .resolves, not 'undefined'. ❯ test/mocked.test.ts:136:21