Commit Graph

26 Commits

Author SHA1 Message Date
Evan You
c07751fd36 refactor: adjust createApp related API signatures
BREAKING CHANGE: `createApp` API has been adjusted.

  - `createApp()` now accepts the root component, and optionally a props
  object to pass to the root component.
  - `app.mount()` now accepts a single argument (the root container)
  - `app.unmount()` no longer requires arguments.

  New behavior looks like the following:

  ``` js
  const app = createApp(RootComponent)
  app.mount('#app')
  app.unmount()
  ```
2020-01-27 16:00:17 -05:00
Evan You
2569890e31 refactor: move mockWarn utility to @vue/shared
close #652
2020-01-22 09:29:45 -05:00
Evan You
3d16c0ea5a fix(runtime-test): output empty attrs without value in seralized output 2019-12-17 12:31:38 -05:00
Evan You
69c9dbc825 feat(sfc): scopeId runtime support 2019-12-17 12:31:38 -05:00
QuincyChen
d7d87622ce refactor: use isArray function from shared (#441) 2019-11-08 09:52:24 -05:00
Evan You
66ecd8b47f types: setup tests for built d.ts files 2019-11-01 22:54:01 -04:00
Evan You
28895b8817 chore: rename mockWarn util 2019-10-31 13:53:11 -04:00
Evan You
47d3356f31 build(deps-dev): bump @types/jest 2019-10-30 11:52:19 -04:00
Cong Min
ec05469b1a chore: use Boolean to filter empty (#228) 2019-10-12 10:55:35 -04:00
Jordan Pittman
a8c82909fa test: Add tests for some runtime helpers (#87)
* test for `renderList`
* test for `toHandlers`
2019-10-05 23:22:42 -04:00
Haoqun Jiang
b275f8697d test: add tests for rendererChildren (#52)
* test: [wip] add tests for rendererChildren

* chore: use serializeInner for clearer output

* fix: should remove the text node if content is empty

* test: also test for appended content

* test: inserting & removing

* test: moving children

* refactor: use a helper function

* test: finish tests

* test: duplicate keys tests belong to keyed children block

* fix(runtime-test): fix insert when moving node in the same parent

* fix: fix failing test cases for rendererChildren

* test: handle rendererChildren edge case
2019-09-20 18:17:35 -04:00
Evan You
3904678306 types: use stricter HostNode typings 2019-09-06 16:58:32 -04:00
Evan You
1e4535dc78 test: improve warning assertions 2019-09-03 16:17:26 -04:00
Evan You
32713f8fce feat: createApp / appContext 2019-09-02 16:09:34 -04:00
Evan You
0cb42fbcf3 wip: make runtime-test nodes non-observable 2019-08-29 16:38:57 -04:00
Evan You
5a754aac81 test: test for setup() 2019-08-26 18:08:56 -04:00
Evan You
3efe0ba3cd test: jest warning assert utils 2019-08-26 16:08:23 -04:00
Evan You
fd1fef5502 test: update fragment tests 2019-08-23 15:27:17 -04:00
Evan You
b5384006d2 wip: update runtime-test 2019-08-21 17:05:14 -04:00
Evan You
645c1eceea wip: update test runtime 2019-06-20 21:28:37 +08:00
Evan You
9d1f0f248d wip: fix more tests 2018-11-03 06:31:31 +09:00
Evan You
ba571cda61 wip: trying to make tests work 2018-11-03 06:31:31 +09:00
Evan You
d70b7d6dd5 wip: error handling and nextTick for time slicing 2018-11-03 06:31:31 +09:00
Evan You
e6be55a498 chore: relax render type for tsx 2018-11-03 05:59:45 +09:00
Evan You
665cd8e3d9 feat(runtime-test): triggerEvent 2018-10-28 17:43:27 -04:00
Evan You
e05673f4d3 refactor: rename packages 2018-10-26 15:44:50 -04:00