Tags: wangzhengbo/vue-testing-library
Tags
feat: Update deps (testing-library#156) This release comes with an updated version of DOM Testing Library – make sure to check their changelog to see what's new!
fix: prevent auto-cleanup to throw when asserting errors in async lif… …ecycle hooks (testing-library#142) * fix: delete wrappers before destroying `wrapper.destroy()` will rethrow any errors via vue test utils `throwIfInstancesThrew`. ensure that wrappers are deleted from mountedWrappers at any time * test: add tests for re-throwing async lifecycle hooks * Update src/__tests__/cleanup-throw.js Co-authored-by: Adrià Fontcuberta <afontcu@gmail.com>
fix: update VTU to v1, update types * feat(@vue/test-utils): upgrade to v1 * refactor(vtu): upgrade to 1.0.2 * Update build-related packages * Remove removed sync option * Bump DOM Testing Library * Bump to VTU 1.0.3 * Fix Vuetify test * Remove test unrelated to Vuetify * Bump DTL patch version * Add @afenton90 as a contributor Co-authored-by: Adrià Fontcuberta <afontcu@gmail.com>
fix(mocha): fix vue-router creation using mocha (testing-library#128) * fix(testing-library#119): allow routes vue-router creation through routes param from both jest and mocha * add test to check vue-router require for mocha users * fix Vue Router require to be compatible with CommonJS * delete deprecated test
fix(mocha): allow vue-router creation using mocha (testing-library#127) * fix(testing-library#119): allow routes vue-router creation through routes param from both jest and mocha * add test to check vue-router require for mocha users
feat: update @testing-library/dom (testing-library#125) BREAKING CHANGE: The latest version of DOM Testing Library has several breaking changes, so you will want to review its changelog to ensure you are unaffected. Also, this release drops support for Node 8. Upgrade to Node 10 or greater.
feat: Bound DTL queries to the base element (testing-library#100) Closes testing-library#98 BREAKING CHANGE: baseElement is no longer tied to the document body, and container is no longer the parent node of the element wrapper, but a wrapper div. These changes shouldn't affect you if you weren't relying on either `baseElement` or `container`.
feat(cleanup): automatically cleanup if afterEach is detected (testin… …g-library#80) You can disable this with the VTL_SKIP_CLEANUP environment variable, but it's recommended to have cleanup work this way. Closes testing-library#77 BREAKING CHANGE: If your tests were not isolated before (and you referenced the same component between tests) then this change will break your tests. You should keep your tests isolated, but if you're unable/unwilling to do that right away, then you can run your tests with the environment variable VTL_SKIP_AUTO_CLEANUP set to true.
PreviousNext