Go to file
Cédric Exbrayat 8457d8b980
fix(runtime-core): allow spying on proxy methods (#4216)
Since Jest v26.6.1, the mock method changed (see this commit 30e8020362)  to rely on `Object.defineProperty` in some cases.

This breaks spying on proxy's methods, because even if Jest is properly calling `Object.defineProperty`, the cached value in the `get` section of the proxy is never updated, and the spy is in fact never used.
This is easily reproducible as vue-next already uses a version of jest with these changes.

This is blocking projects (like vue-test-utils-next and vue-cli) to update to recent Jest versions.

This commit adds a `defineProperty` method to the proxy handler, that properly updates the defined value in the cache.
2022-02-12 03:35:05 -05:00
.github chore: update repo references 2022-01-18 16:43:59 +08:00
.vscode workflow: cross platform vscode jest debugging (#414) 2020-06-12 10:34:31 -04:00
packages fix(runtime-core): allow spying on proxy methods (#4216) 2022-02-12 03:35:05 -05:00
scripts workflow: remove next tag in release script 2022-02-07 13:26:12 +08:00
test-dts fix(types): calling readonly() with ref() should return Readonly<Ref<T>> (#5212) 2022-01-21 02:33:30 -05:00
.eslintrc.js feat(reactivity-transform): rename @vue/ref-transform to @vue/reactivity-transform 2021-12-12 00:04:38 +08:00
.gitignore chore: ignore .idea folder (#4838) [ci skip] 2021-11-01 23:18:59 -04:00
.prettierrc feat(types): map declared emits to onXXX props in inferred prop types (#3926) 2021-07-19 18:22:19 -04:00
api-extractor.json chore: avoid api-extractor warnings 2021-12-12 00:14:25 +08:00
BACKERS.md chore: remove v3.vuejs.org references 2022-02-07 13:13:26 +08:00
CHANGELOG.md release: v3.2.30 2022-02-07 14:14:53 +08:00
jest.config.js refactor: ensure ssr branches are included in esm-bundler build 2021-09-23 15:02:19 -04:00
LICENSE chore: license 2019-10-28 11:15:17 -04:00
netlify.toml workflow: move to pnpm (#4766) 2021-10-08 14:23:30 -04:00
package.json release: v3.2.30 2022-02-07 14:14:53 +08:00
pnpm-lock.yaml release: v3.2.30 2022-02-07 14:14:53 +08:00
pnpm-workspace.yaml workflow: move to pnpm (#4766) 2021-10-08 14:23:30 -04:00
README.md chore: readme [ci skip] 2022-02-07 13:20:01 +08:00
rollup.config.js build: fix build script 2022-01-21 16:12:25 +08:00
SECURITY.md chore: improve security.md [ci skip] 2021-10-10 17:38:37 -04:00
tsconfig.json fix(build): fix generated code containing unprocessed class field syntax 2021-07-02 07:37:27 -04:00

vuejs/core npm build status

Getting Started

Please follow the documentation at vuejs.org!

Sponsors

Vue.js is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider sponsor Vue's development.

sponsors

Questions

For questions and support please use the official forum or community chat. The issue list of this repo is exclusively for bug reports and feature requests.

Issues

Please make sure to respect issue requirements and use the new issue helper when opening an issue. Issues not conforming to the guidelines may be closed immediately.

Stay In Touch

Contribution

Please make sure to read the Contributing Guide before making a pull request. If you have a Vue-related project/component/tool, add it with a pull request to this curated list!

Thank you to all the people who already contributed to Vue!

License

MIT

Copyright (c) 2013-present, Yuxi (Evan) You