@open-wc/testing-helpers
Advanced tools
Comparing version 1.5.3 to 1.6.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.6.0](https://github.com/open-wc/open-wc/compare/@open-wc/testing-helpers@1.5.3...@open-wc/testing-helpers@1.6.0) (2020-03-10) | ||
### Features | ||
* **testing-helpers:** support fixture cleanup in tdd style tests with 'teardown' ([#1410](https://github.com/open-wc/open-wc/issues/1410)) ([ce8c833](https://github.com/open-wc/open-wc/commit/ce8c8337da2d07d82f40e778d37a709093606b7e)) | ||
## [1.5.3](https://github.com/open-wc/open-wc/compare/@open-wc/testing-helpers@1.5.2...@open-wc/testing-helpers@1.5.3) (2020-03-10) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@open-wc/testing-helpers", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"publishConfig": { | ||
@@ -41,3 +41,3 @@ "access": "public" | ||
"module": "index.js", | ||
"gitHead": "781e6a6ce2c77863d6a6cdb8827932862774b2b7" | ||
"gitHead": "da8b4c0287fbe84c1e46611be53f4470bd84b7e6" | ||
} |
@@ -11,3 +11,3 @@ import { fixtureCleanup } from './fixtureWrapper.js'; | ||
// @ts-ignore | ||
if (afterEach) { | ||
if ('afterEach' in window) { | ||
// @ts-ignore | ||
@@ -18,4 +18,11 @@ afterEach(() => { | ||
} | ||
// @ts-ignore | ||
if ('teardown' in window) { | ||
// @ts-ignore | ||
teardown(() => { | ||
fixtureCleanup(); | ||
}); | ||
} | ||
} catch (error) { | ||
/* do nothing */ | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56402
509