diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2cda2ed4..a3c36c5f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -41,14 +41,14 @@ jobs: echo $BRANCH_NAME # process.env.BRANCH = 'pull_27'; echo "BRANCH=$(echo ${BRANCH_NAME})" >> $GITHUB_ENV - - if: ${{ matrix.node-version == '18.x' }} + - if: ${{ github.ref == 'refs/heads/master' }} name: Create the Badge uses: schneegans/dynamic-badges-action@v1.4.0 with: auth: ${{ secrets.GIST_SECRET }} gistID: 166d927bd0089d7bfdee4e98a537712c filename: esmock__${{ env.BRANCH }}.json - label: Test Coverage + label: coverage message: ${{ env.COVERAGE }} - color: green + color: "#44CC11" namedLogo: node diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b5f3b14..4ac75e9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # changelog + * 1.9.0 _Jul.30.2022_ + * support for modules using stringy exports.import rules + * add live coverage badge to show, for example, 98% coverage + * add linting for README examples + * improve unit-test for mocking non-extansible objects + * improve node-version definition of `isLT1612` per review @aladdin-add + * use smaller and specific condition for calling nextResolve at loader * 1.8.9 _Jul.25.2022_ * resolve error, do not define default on extensible objects, credit @tripodsan * 1.8.8 _Jul.24.2022_ diff --git a/README.md b/README.md index a385b989..571b24b0 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ +╚███████╗███████╔╝██║ ██║ ██║╚██████╔╝╚██████╗██║ ╚██╗ + ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝ ``` -[![npm version](https://badge.fury.io/js/esmock.svg)](https://badge.fury.io/js/esmock) [![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/iambumblehead/166d927bd0089d7bfdee4e98a537712c/raw/esmock__heads_main.json)][2] [![install size](https://packagephobia.now.sh/badge?p=esmock)](https://packagephobia.now.sh/result?p=esmock) [![downloads](https://badgen.now.sh/npm/dm/esmock)](https://npmjs.org/package/esmock) +[![npm version](https://badge.fury.io/js/esmock.svg)](https://badge.fury.io/js/esmock) [![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/iambumblehead/166d927bd0089d7bfdee4e98a537712c/raw/esmock__heads_master.json)][2] [![install size](https://packagephobia.now.sh/badge?p=esmock)](https://packagephobia.now.sh/result?p=esmock) [![downloads](https://badgen.now.sh/npm/dm/esmock)](https://npmjs.org/package/esmock) **esmock provides native ESM import mocking for unit tests.** Use examples below as a quick-start guide, see the [descriptive and friendly esmock guide here,][10] or browse [esmock's test runner examples.][3] diff --git a/package.json b/package.json index 5441da58..2e89aff9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "esmock", - "version": "1.8.9", + "version": "1.9.0", "license": "ISC", "readmeFilename": "README.md", "description": "provides native ESM import mocking for unit tests",